From d15d8c2de11bce95b6ddb0fe21b44b588e6fcdb2 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Tue, 18 Jun 2024 18:37:35 -0500 Subject: [PATCH] WHAT NOW JUST COMPILE ALREADY --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index b4292d902..ef2dfc845 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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;