fixed mounting points under /Volumes

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16681 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor 2002-08-22 17:44:43 +00:00
parent 33c8cf5e8c
commit fac9b0cf88
2 changed files with 10 additions and 0 deletions

View File

@ -156,6 +156,11 @@ bool wxDirData::Read(wxString *filename)
strcpy( (char *)m_name, c_name);
#else
p2cstr( m_name ) ;
#endif
#if TARGET_CARBON
// under X thats the way the mounting points look like
if ( ( m_CPB.dirInfo.ioDrDirID == 0 ) && ( m_flags & wxDIR_DIRS) )
break ;
#endif
if ( ( m_CPB.dirInfo.ioFlAttrib & ioDirMask) != 0 && (m_flags & wxDIR_DIRS) ) // we have a directory
break ;

View File

@ -156,6 +156,11 @@ bool wxDirData::Read(wxString *filename)
strcpy( (char *)m_name, c_name);
#else
p2cstr( m_name ) ;
#endif
#if TARGET_CARBON
// under X thats the way the mounting points look like
if ( ( m_CPB.dirInfo.ioDrDirID == 0 ) && ( m_flags & wxDIR_DIRS) )
break ;
#endif
if ( ( m_CPB.dirInfo.ioFlAttrib & ioDirMask) != 0 && (m_flags & wxDIR_DIRS) ) // we have a directory
break ;