From: Stefan Csomor Date: Thu, 22 Aug 2002 17:44:43 +0000 (+0000) Subject: fixed mounting points under /Volumes X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/fac9b0cf883c00eee1590a6fe921e2e90c8f66df?ds=inline fixed mounting points under /Volumes git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16681 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/mac/carbon/dirmac.cpp b/src/mac/carbon/dirmac.cpp index 9c8f191681..129f61a754 100644 --- a/src/mac/carbon/dirmac.cpp +++ b/src/mac/carbon/dirmac.cpp @@ -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 ; diff --git a/src/mac/dirmac.cpp b/src/mac/dirmac.cpp index 9c8f191681..129f61a754 100644 --- a/src/mac/dirmac.cpp +++ b/src/mac/dirmac.cpp @@ -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 ;