From 54c1495a6ea33db677bde1173690218a10630c64 Mon Sep 17 00:00:00 2001 From: Jarod42 Date: Tue, 19 Dec 2023 21:14:34 +0100 Subject: [PATCH] Force unicode. --- src/app/getexepath.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/app/getexepath.cpp b/src/app/getexepath.cpp index ae8ff39..d369434 100644 --- a/src/app/getexepath.cpp +++ b/src/app/getexepath.cpp @@ -21,12 +21,14 @@ #include "getexepath.h" #ifdef _WIN32 - +# ifndef UNICODE +# define UNICODE +# endif # include std::filesystem::path getExePath() { - char ownPth[MAX_PATH]; + wchar_t ownPth[MAX_PATH]; HMODULE hModule = GetModuleHandle(nullptr); if (hModule != nullptr) {