Commit 8e71504e authored by Alexandre Julliard's avatar Alexandre Julliard

programs: Don't make apps Unicode if they don't use the command line.

parent 7ca85aa9
...@@ -3,7 +3,7 @@ TOPOBJDIR = ../.. ...@@ -3,7 +3,7 @@ TOPOBJDIR = ../..
SRCDIR = @srcdir@ SRCDIR = @srcdir@
VPATH = @srcdir@ VPATH = @srcdir@
MODULE = lodctr.exe MODULE = lodctr.exe
APPMODE = -mconsole -municode APPMODE = -mconsole
IMPORTS = loadperf kernel32 IMPORTS = loadperf kernel32
C_SRCS = lodctr_main.c C_SRCS = lodctr_main.c
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
#include <windows.h> #include <windows.h>
#include <loadperf.h> #include <loadperf.h>
int wmain(int argc, WCHAR *argv[]) int main( int argc, char *argv[] )
{ {
return LoadPerfCounterTextStringsW(GetCommandLineW(), FALSE); return LoadPerfCounterTextStringsW(GetCommandLineW(), FALSE);
} }
...@@ -3,7 +3,7 @@ TOPOBJDIR = ../.. ...@@ -3,7 +3,7 @@ TOPOBJDIR = ../..
SRCDIR = @srcdir@ SRCDIR = @srcdir@
VPATH = @srcdir@ VPATH = @srcdir@
MODULE = oleview.exe MODULE = oleview.exe
APPMODE = -mwindows -municode APPMODE = -mwindows
IMPORTS = uuid comdlg32 comctl32 shell32 oleaut32 ole32 user32 advapi32 kernel32 IMPORTS = uuid comdlg32 comctl32 shell32 oleaut32 ole32 user32 advapi32 kernel32
EXTRADEFS = -DUNICODE EXTRADEFS = -DUNICODE
......
...@@ -534,8 +534,7 @@ static BOOL InitInstance(HINSTANCE hInst, int nCmdShow) ...@@ -534,8 +534,7 @@ static BOOL InitInstance(HINSTANCE hInst, int nCmdShow)
return TRUE; return TRUE;
} }
int APIENTRY wWinMain(HINSTANCE hInst, HINSTANCE hPrevInst, int APIENTRY WinMain(HINSTANCE hInst, HINSTANCE hPrevInst, LPSTR lpCmdLine, int nCmdShow)
LPWSTR lpCmdLine, int nCmdShow)
{ {
MSG msg; MSG msg;
HANDLE hAccelTable; HANDLE hAccelTable;
......
...@@ -3,7 +3,7 @@ TOPOBJDIR = ../.. ...@@ -3,7 +3,7 @@ TOPOBJDIR = ../..
SRCDIR = @srcdir@ SRCDIR = @srcdir@
VPATH = @srcdir@ VPATH = @srcdir@
MODULE = unlodctr.exe MODULE = unlodctr.exe
APPMODE = -mconsole -municode APPMODE = -mconsole
IMPORTS = loadperf kernel32 IMPORTS = loadperf kernel32
C_SRCS = unlodctr_main.c C_SRCS = unlodctr_main.c
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
#include <windows.h> #include <windows.h>
#include <loadperf.h> #include <loadperf.h>
int wmain(int argc, WCHAR *argv[]) int main( int argc, char *argv[] )
{ {
return UnloadPerfCounterTextStringsW(GetCommandLineW(), FALSE); return UnloadPerfCounterTextStringsW(GetCommandLineW(), FALSE);
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment