X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f11bdd03b9623a61bfe3137beeefd7b1256bb9a1..16d38102e8ad5534d185cc532b9aa8077a75e0a4:/src/mac/filedlg.cpp?ds=sidebyside diff --git a/src/mac/filedlg.cpp b/src/mac/filedlg.cpp index 144cdee796..1d6fd58d44 100644 --- a/src/mac/filedlg.cpp +++ b/src/mac/filedlg.cpp @@ -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 ) ; } }