dxdiag: make dxdiag a unicode rather than ANSI program
Austin English
austinenglish at gmail.com
Wed Aug 26 15:40:40 CDT 2009
--
-Austin
-------------- next part --------------
diff --git a/programs/dxdiag/Makefile.in b/programs/dxdiag/Makefile.in
index 2e7e7b0..a8dd0d9 100644
--- a/programs/dxdiag/Makefile.in
+++ b/programs/dxdiag/Makefile.in
@@ -4,7 +4,7 @@ TOPOBJDIR = ../..
SRCDIR = @srcdir@
VPATH = @srcdir@
MODULE = dxdiag.exe
-APPMODE = -mwindows
+APPMODE = -mwindows -municode
IMPORTS = kernel32
C_SRCS = \
diff --git a/programs/dxdiag/main.c b/programs/dxdiag/main.c
index d24945c..d8a4866 100644
--- a/programs/dxdiag/main.c
+++ b/programs/dxdiag/main.c
@@ -20,8 +20,9 @@
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
+#include "wine/unicode.h"
-int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrevInst, LPSTR cmdline, int cmdshow)
+int WINAPI wWinMain(HINSTANCE hInst, HINSTANCE hPrevInst, LPWSTR cmdline, int cmdshow)
{
return 0;
}
More information about the wine-patches
mailing list