X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/723c433f658db8fb6b58d3b69c861482d8b8d0ad..b6e2eddeaf7e559589ce41ac41e88f9bd71c5a08:/utils/emulator/src/emulator.cpp diff --git a/utils/emulator/src/emulator.cpp b/utils/emulator/src/emulator.cpp index 785bc8bda7..672287a256 100644 --- a/utils/emulator/src/emulator.cpp +++ b/utils/emulator/src/emulator.cpp @@ -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;