X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f74172ab4256c9e7c665e44e2f94ce12bf84a37f..0d236fd0faa89b4c3da04facdd50817f03207093:/src/generic/filedlgg.cpp diff --git a/src/generic/filedlgg.cpp b/src/generic/filedlgg.cpp index 3e526cd611..17333175ab 100644 --- a/src/generic/filedlgg.cpp +++ b/src/generic/filedlgg.cpp @@ -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 descripition") ); + } // layout