diff options
Diffstat (limited to 'src/os_w32exe.c')
-rw-r--r-- | src/os_w32exe.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/os_w32exe.c b/src/os_w32exe.c index 6c45ec2ea..769a85191 100644 --- a/src/os_w32exe.c +++ b/src/os_w32exe.c @@ -28,20 +28,22 @@ void _cdecl SaveInst(HINSTANCE hInst); #endif #ifndef PROTO +# ifdef FEAT_GUI int WINAPI -WinMain( +wWinMain( HINSTANCE hInstance, HINSTANCE hPrevInst UNUSED, - LPSTR lpszCmdLine UNUSED, + LPWSTR lpszCmdLine UNUSED, int nCmdShow UNUSED) +# else + int +wmain(int argc UNUSED, wchar_t **argv UNUSED) +# endif { - int argc = 0; - char **argv = NULL; - # ifdef FEAT_GUI SaveInst(hInstance); # endif - VimMain(argc, argv); + VimMain(0, NULL); return 0; } |