Skip to content

Commit

Permalink
WHAT NOW
Browse files Browse the repository at this point in the history
JUST COMPILE ALREADY
  • Loading branch information
tildearrow committed Jun 18, 2024
1 parent 85d2195 commit d15d8c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d15d8c2

Please sign in to comment.