mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-25 14:05:12 +00:00
WHAT NOW
JUST COMPILE ALREADY
This commit is contained in:
parent
85d2195b0a
commit
d15d8c2de1
1 changed files with 1 additions and 1 deletions
|
@ -131,7 +131,7 @@ bool getExePath(char* argv0, char* exePath, size_t maxSize) {
|
|||
wchar_t exePathW[4096];
|
||||
WString argv0W=utf8To16(argv0);
|
||||
if (GetFullPathNameW(argv0W.c_str(),4095,exePathW,NULL)==0) return false;
|
||||
String exePathS=utf16To8(exePathW.c_str());
|
||||
String exePathS=utf16To8(exePathW);
|
||||
strncpy(exePath,exePathS.c_str(),maxSize);
|
||||
#else
|
||||
if (realpath(argv0,exePath)==NULL) return false;
|
||||
|
|
Loading…
Reference in a new issue