Make sure GetExecutablePath is normalized on windows.

This commit is contained in:
Jacob Dufault 2017-12-15 21:18:23 -08:00
parent 9f249970b0
commit 883f886d2a

View File

@ -131,7 +131,7 @@ void PlatformInit() {
std::string GetExecutablePath() { std::string GetExecutablePath() {
char result[MAX_PATH] = {0}; char result[MAX_PATH] = {0};
GetModuleFileName(NULL, result, MAX_PATH); GetModuleFileName(NULL, result, MAX_PATH);
return std::string(result); return NormalizePath(result);
} }
// See http://stackoverflow.com/a/19535628 // See http://stackoverflow.com/a/19535628