]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed mounting points under /Volumes
authorStefan Csomor <csomor@advancedconcepts.ch>
Thu, 22 Aug 2002 17:44:43 +0000 (17:44 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Thu, 22 Aug 2002 17:44:43 +0000 (17:44 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16681 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/dirmac.cpp
src/mac/dirmac.cpp

index 9c8f191681e0bdc772459b1d15420b7ed26009f4..129f61a7540e3bab2af99b1b9e611877d716f8b2 100644 (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 ;
index 9c8f191681e0bdc772459b1d15420b7ed26009f4..129f61a7540e3bab2af99b1b9e611877d716f8b2 100644 (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 ;