mirror of
https://github.com/reactos/reactos.git
synced 2024-12-29 10:35:28 +00:00
fix detection of missing target. thanks to thomas.
svn path=/trunk/; revision=18234
This commit is contained in:
parent
f04df80d72
commit
b45fcd6e73
1 changed files with 2 additions and 1 deletions
|
@ -566,6 +566,7 @@ INT cmd_rmdir (LPTSTR cmd, LPTSTR param)
|
|||
return 1;
|
||||
}
|
||||
|
||||
dir[0] = 0;
|
||||
/* check for options anywhere in command line */
|
||||
for (i = 0; i < args; i++)
|
||||
{
|
||||
|
@ -592,7 +593,7 @@ INT cmd_rmdir (LPTSTR cmd, LPTSTR param)
|
|||
}
|
||||
}
|
||||
|
||||
if (!dir)
|
||||
if (dir[0] == _T('\0'))
|
||||
{
|
||||
/* No folder to remove */
|
||||
ConErrResPuts(STRING_ERROR_REQ_PARAM_MISSING);
|
||||
|
|
Loading…
Reference in a new issue