fix(launcher): Use WinMain instead of wWinMain
All checks were successful
Ubuntu Cross to Win64 / Cross Compile with ming64 (1.4.0, ubuntu-latest) (push) Successful in 1m30s

This commit is contained in:
Kevin Trogant 2024-07-24 12:42:24 +02:00
parent 4ab483c003
commit e371a24761
2 changed files with 3 additions and 2 deletions

View File

@ -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

View File

@ -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;
}