[DISKPART] Don't crash on input if user provided no command

CORE-14018
This commit is contained in:
Pierre Schweitzer 2018-01-03 08:47:36 +01:00
parent b2be558e61
commit 06abd3b480
No known key found for this signature in database
GPG key ID: 7545556C3D585B0B

View file

@ -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)