// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma implementation "filedlgg.h"
#endif
#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;
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"),
// 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