mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-26 09:31:59 +00:00
Make sure GetExecutablePath is normalized on windows.
This commit is contained in:
parent
9f249970b0
commit
883f886d2a
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user