Make command parsing in DoCommand/Execute more compatible with Windows

svn path=/trunk/; revision=40280
This commit is contained in:
Jeffrey Morlan 2009-03-29 05:13:35 +00:00
parent 47bc28fa47
commit ad25b56ea8
5 changed files with 120 additions and 249 deletions

View file

@ -704,11 +704,7 @@ INT CommandShowCommandsDetail (LPTSTR param)
/* If a param was send, display help of correspondent command */
if (_tcslen(param))
{
LPTSTR NewCommand = cmd_alloc((_tcslen(param)+4)*sizeof(TCHAR));
_tcscpy(NewCommand, param);
_tcscat(NewCommand, _T(" /?"));
DoCommand(NewCommand, NULL);
cmd_free(NewCommand);
DoCommand(param, _T("/?"), NULL);
}
/* Else, display detailed commands list */
else