cmd.exe: Change from main to wmain.
This commit is contained in:
parent
c4885bc46f
commit
81c1aa14d5
|
@ -3,7 +3,7 @@ TOPOBJDIR = ../..
|
|||
SRCDIR = @srcdir@
|
||||
VPATH = @srcdir@
|
||||
MODULE = cmd.exe
|
||||
APPMODE = -mconsole
|
||||
APPMODE = -mconsole -municode
|
||||
EXTRADEFS = -DUNICODE
|
||||
IMPORTS = shell32 user32 advapi32 kernel32
|
||||
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue