diff --git a/src/mac/corefoundation/stdpaths_cf.cpp b/src/mac/corefoundation/stdpaths_cf.cpp index f8cf48355a..fedc3982f0 100644 --- a/src/mac/corefoundation/stdpaths_cf.cpp +++ b/src/mac/corefoundation/stdpaths_cf.cpp @@ -166,7 +166,11 @@ wxString wxStandardPathsCF::GetExecutablePath() const processinfo.processAppSpec = &fsSpec; GetProcessInformation( &procno , &processinfo ) ; +#ifdef __LP64__ + return wxMacFSRefToPath(&fsRef); +#else return wxMacFSSpec2MacFilename(&fsSpec); +#endif #else return wxStandardPathsBase::GetExecutablePath(); #endif