mirror of
https://github.com/reactos/reactos.git
synced 2024-12-29 02:25:17 +00:00
[DISKPART] Don't crash on input if user provided no command
CORE-14018
This commit is contained in:
parent
b2be558e61
commit
06abd3b480
1 changed files with 4 additions and 0 deletions
|
@ -69,6 +69,10 @@ InterpretCmd(int argc, LPWSTR *argv)
|
|||
{
|
||||
PCOMMAND cmdptr;
|
||||
|
||||
/* If no args provided */
|
||||
if (argc < 1)
|
||||
return TRUE;
|
||||
|
||||
/* First, determine if the user wants to exit
|
||||
or to use a comment */
|
||||
if(wcsicmp(argv[0], L"exit") == 0)
|
||||
|
|
Loading…
Reference in a new issue