cmd.exe: Change from main to wmain.

This commit is contained in:
Jason Edmeades 2007-06-03 22:07:45 +01:00 committed by Alexandre Julliard
parent c4885bc46f
commit 81c1aa14d5
2 changed files with 2 additions and 6 deletions

View File

@ -3,7 +3,7 @@ TOPOBJDIR = ../..
SRCDIR = @srcdir@
VPATH = @srcdir@
MODULE = cmd.exe
APPMODE = -mconsole
APPMODE = -mconsole -municode
EXTRADEFS = -DUNICODE
IMPORTS = shell32 user32 advapi32 kernel32

View File

@ -100,9 +100,8 @@ static WCHAR *WCMD_expand_envvar(WCHAR *start);
* winmain().
*/
int main (int argc, char *argv[])
int wmain (int argc, WCHAR *argvW[])
{
LPWSTR *argvW = NULL;
int args;
WCHAR *cmd = NULL;
WCHAR string[1024];
@ -121,10 +120,7 @@ int main (int argc, char *argv[])
wsprintf(version_string, WCMD_LoadMessage(WCMD_VERSION), string);
strcpyW(anykey, WCMD_LoadMessage(WCMD_ANYKEY));
/* Get a Unicode command line */
argvW = CommandLineToArgvW( GetCommandLineW(), &argc );
args = argc;
opt_c=opt_k=opt_q=opt_s=0;
while (args > 0)
{