Skip to content

Commit

Permalink
Force unicode.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarod42 committed Dec 19, 2023
1 parent eed2595 commit 54c1495
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/app/getexepath.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,14 @@
#include "getexepath.h"

#ifdef _WIN32

# ifndef UNICODE
# define UNICODE
# endif
# include <windows.h>

std::filesystem::path getExePath()
{
char ownPth[MAX_PATH];
wchar_t ownPth[MAX_PATH];
HMODULE hModule = GetModuleHandle(nullptr);

if (hModule != nullptr) {
Expand Down

0 comments on commit 54c1495

Please sign in to comment.