From 1b5167f1cb237123bd1970cf43459877846f34a1 Mon Sep 17 00:00:00 2001 From: Austin English Date: Wed, 26 Aug 2009 15:40:40 -0500 Subject: [PATCH] dxdiag: Make dxdiag a Unicode rather than ANSI program. --- programs/dxdiag/Makefile.in | 2 +- programs/dxdiag/main.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/programs/dxdiag/Makefile.in b/programs/dxdiag/Makefile.in index 2e7e7b0b7cd..a8dd0d98950 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 d24945cc93e..d8a486638e6 100644 --- a/programs/dxdiag/main.c +++ b/programs/dxdiag/main.c @@ -20,8 +20,9 @@ #define WIN32_LEAN_AND_MEAN #include +#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; }