X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f74172ab4256c9e7c665e44e2f94ce12bf84a37f..1978421a6d8b81c1f8a961da4b8ddf544fec7b1b:/src/generic/filedlgg.cpp?ds=sidebyside diff --git a/src/generic/filedlgg.cpp b/src/generic/filedlgg.cpp index 3e526cd611..41dc1131ed 100644 --- a/src/generic/filedlgg.cpp +++ b/src/generic/filedlgg.cpp @@ -9,7 +9,7 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "filedlgg.h" #endif @@ -180,7 +180,7 @@ void wxFileData::ReadData() #if defined(__DOS__) || defined(__WINDOWS__) // c:\.. is a drive don't stat it - if ((fileName == wxT("..")) && (filePath.length() <= 5)) + if ((m_fileName == wxT("..")) && (m_filePath.length() <= 5)) { m_type = is_drive; m_size = 0; @@ -225,7 +225,7 @@ void wxFileData::ReadData() buff.st_mode & wxS_IWOTH ? _T('w') : _T('-'), buff.st_mode & wxS_IXOTH ? _T('x') : _T('-')); #elif defined(__WIN32__) - DWORD attribs = GetFileAttributes(filePath); + DWORD attribs = GetFileAttributes(m_filePath); if (attribs != (DWORD)-1) { m_permissions.Printf(_T("%c%c%c%c"), @@ -871,8 +871,10 @@ wxGenericFileDialog::wxGenericFileDialog(wxWindow *parent, // interpret wildcards wxArrayString wildDescriptions, wildFilters; - int wild_count = ParseWildcard(m_wildCard, wildDescriptions, wildFilters); - wxASSERT_MSG(wild_count > 0, wxT("Wrong file type descripition") ); + if ( !ParseWildcard(m_wildCard, wildDescriptions, wildFilters) ) + { + wxFAIL_MSG( wxT("Wrong file type description") ); + } // layout