mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 19:26:32 +00:00
fix detection of missing target. thanks to thomas.
svn path=/trunk/; revision=18234
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user