Commit a607f537 authored by Arjun Comar's avatar Arjun Comar Committed by Alexandre Julliard

cmd: Fix cmd to take /? as a help parameter.

parent 3b6498a5
......@@ -1134,12 +1134,12 @@ void WCMD_give_help (WCHAR *command) {
else {
for (i=0; i<=WCMD_EXIT; i++) {
if (CompareStringW(LOCALE_USER_DEFAULT, NORM_IGNORECASE | SORT_STRINGSORT,
param1, -1, inbuilt[i], -1) == 2) {
command, -1, inbuilt[i], -1) == 2) {
WCMD_output_asis (WCMD_LoadMessage(i));
return;
}
}
WCMD_output (WCMD_LoadMessage(WCMD_NOCMDHELP), param1);
WCMD_output (WCMD_LoadMessage(WCMD_NOCMDHELP), command);
}
return;
}
......
......@@ -1411,6 +1411,15 @@ void WCMD_execute (WCHAR *command, WCHAR *redirects,
WCMD_parse (p, quals, param1, param2);
WINE_TRACE("param1: %s, param2: %s\n", wine_dbgstr_w(param1), wine_dbgstr_w(param2));
if((p[0] == '/') && (p[1] == '?')) {
/*this is a help request for a program*/
i = WCMD_HELP;
memcpy(p, whichcmd, count * sizeof(WCHAR));
p[count] = '\0';
}
switch (i) {
case WCMD_ATTRIB:
......
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