summaryrefslogtreecommitdiffstats
path: root/PC/WinMain.c
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2008-05-09 17:06:49 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2008-05-09 17:06:49 (GMT)
commit66834fd0784a8655b8939241d3d79f654a50803b (patch)
treea407001ebf873d26b940aa7c3276f7d3a2e87e88 /PC/WinMain.c
parentb1342277378faba62ff70e300f10a730d570a2eb (diff)
downloadcpython-66834fd0784a8655b8939241d3d79f654a50803b.zip
cpython-66834fd0784a8655b8939241d3d79f654a50803b.tar.gz
cpython-66834fd0784a8655b8939241d3d79f654a50803b.tar.bz2
Use UNICODE wWinMain, to make CRT initialize __wargv.
Diffstat (limited to 'PC/WinMain.c')
-rw-r--r--PC/WinMain.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/PC/WinMain.c b/PC/WinMain.c
index c334a03..e439bed 100644
--- a/PC/WinMain.c
+++ b/PC/WinMain.c
@@ -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 */
)
{