]> granicus.if.org Git - python/commitdiff
Use UNICODE wWinMain, to make CRT initialize __wargv.
authorMartin v. Löwis <martin@v.loewis.de>
Fri, 9 May 2008 17:06:49 +0000 (17:06 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Fri, 9 May 2008 17:06:49 +0000 (17:06 +0000)
PC/WinMain.c

index c334a03d2ebe3da4ab6b55a1539ce7d34cd6fa2f..e439bed9ed113794118d34b80d8ad5068ed16aa8 100644 (file)
@@ -5,10 +5,10 @@
 #define WIN32_LEAN_AND_MEAN
 #include <windows.h>
 
-int WINAPI WinMain(
+int WINAPI wWinMain(
     HINSTANCE hInstance,      /* handle to current instance */
     HINSTANCE hPrevInstance,  /* handle to previous instance */
-    LPSTR lpCmdLine,          /* pointer to command line */
+    LPWSTR lpCmdLine,         /* pointer to command line */
     int nCmdShow              /* show state of window */
 )
 {