mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
[DISKPART] Fix crashes in the interpreter
This commit is contained in:
parent
17e0e4428c
commit
166b88f95c
1 changed files with 6 additions and 6 deletions
|
@ -128,20 +128,20 @@ InterpretCmd(
|
|||
for (cmdptr = cmds; cmdptr->cmd1; cmdptr++)
|
||||
{
|
||||
if ((cmdptr1 == NULL) &&
|
||||
(wcsicmp(argv[0], cmdptr->cmd1) == 0))
|
||||
(cmdptr->cmd1 != NULL) && (wcsicmp(argv[0], cmdptr->cmd1) == 0))
|
||||
cmdptr1 = cmdptr;
|
||||
|
||||
if ((cmdptr2 == NULL) &&
|
||||
(argc >= 2) &&
|
||||
(wcsicmp(argv[0], cmdptr->cmd1) == 0) &&
|
||||
(wcsicmp(argv[1], cmdptr->cmd2) == 0))
|
||||
(cmdptr->cmd1 != NULL) && (wcsicmp(argv[0], cmdptr->cmd1) == 0) &&
|
||||
(cmdptr->cmd2 != NULL) && (wcsicmp(argv[1], cmdptr->cmd2) == 0))
|
||||
cmdptr2 = cmdptr;
|
||||
|
||||
if ((cmdptr3 == NULL) &&
|
||||
(argc >= 3) &&
|
||||
(wcsicmp(argv[0], cmdptr->cmd1) == 0) &&
|
||||
(wcsicmp(argv[1], cmdptr->cmd2) == 0) &&
|
||||
(wcsicmp(argv[2], cmdptr->cmd3) == 0))
|
||||
(cmdptr->cmd1 != NULL) && (wcsicmp(argv[0], cmdptr->cmd1) == 0) &&
|
||||
(cmdptr->cmd2 != NULL) && (wcsicmp(argv[1], cmdptr->cmd2) == 0) &&
|
||||
(cmdptr->cmd3 != NULL) && (wcsicmp(argv[2], cmdptr->cmd3) == 0))
|
||||
cmdptr3 = cmdptr;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue