]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/filedlg.cpp
Fixed compile errors, warnings and other DSMs, and improved comments.
[wxWidgets.git] / src / mac / filedlg.cpp
index 144cdee7963c5cf78b7710f47f71bbf7fae77562..1d6fd58d44d32371f335a4b7fa0157b46cd6daa9 100644 (file)
@@ -560,7 +560,11 @@ pascal Boolean CrossPlatformFilterCallback (
                if (theItem->descriptorType == typeFSS && !theInfo->isFolder)
                {
                  FSSpec        spec;
-                 memcpy( &spec , *theItem->dataHandle , sizeof(FSSpec) ) ;
+#if TARGET_CARBON
+                 ::AEGetDescData(theItem, &spec, sizeof(FSSpec) ) ;
+#else
+                 memcpy( &spec , (*theItem->dataHandle) , sizeof(FSSpec) ) ;
+#endif
                  display = CheckFile( spec.name , theInfo->fileAndFolder.fileInfo.finderInfo.fdType , data ) ;
                }
        }