Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 66834fd

Browse files
committed
Use UNICODE wWinMain, to make CRT initialize __wargv.
1 parent b134227 commit 66834fd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

PC/WinMain.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
#define WIN32_LEAN_AND_MEAN
66
#include <windows.h>
77

8-
int WINAPI WinMain(
8+
int WINAPI wWinMain(
99
HINSTANCE hInstance, /* handle to current instance */
1010
HINSTANCE hPrevInstance, /* handle to previous instance */
11-
LPSTR lpCmdLine, /* pointer to command line */
11+
LPWSTR lpCmdLine, /* pointer to command line */
1212
int nCmdShow /* show state of window */
1313
)
1414
{

0 commit comments

Comments
 (0)