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