]> git.saurik.com Git - wxWidgets.git/blobdiff - utils/emulator/src/emulator.cpp
avoid a bug in Carbon headers
[wxWidgets.git] / utils / emulator / src / emulator.cpp
index 785bc8bda7455d310b513e7c264c8f90c1fb880a..672287a256306ae6f529ec6600ec9e5070010ff1 100644 (file)
@@ -578,7 +578,7 @@ wxString wxFindAppPath(const wxString& argv0, const wxString& cwd, const wxStrin
     {
         // Is it a relative path?
         wxString currentDir(cwd);
-        if (currentDir.Last() != wxFILE_SEP_PATH)
+        if (!wxEndsWithPathSeparator(currentDir))
             currentDir += wxFILE_SEP_PATH;
 
         str = currentDir + argv0;