diff --git a/meson.build b/meson.build index 84bb3e1..26a9922 100644 --- a/meson.build +++ b/meson.build @@ -59,7 +59,8 @@ if build_machine.system() == 'linux' and host_machine.system() == 'windows' add_project_arguments(['-isystem/usr/share/mingw-w64/include', '-DRT_CROSS_LINUX_WINDOWS', '-D_WIN32_WINNT=0x600', - '-lgcc'], + '-lgcc', + '-municode'], language: ['c', 'cpp'], native: false) endif diff --git a/src/launcher/launcher.c b/src/launcher/launcher.c index e29a127..c3c15a0 100644 --- a/src/launcher/launcher.c +++ b/src/launcher/launcher.c @@ -364,7 +364,7 @@ static int Entry(int argc, char **argv) { #ifdef _WIN32 #define WIN32_LEAN_AND_MEAN -int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCVE hPrevInstance, PWSTR pCmdLine, int nCmdShow) { +int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR pCmdLine, int nCmdShow) { _hInstance = hInstance; return 0; }