diff --git a/reactos/subsys/system/cmd/internal.c b/reactos/subsys/system/cmd/internal.c index 560344ac6c3..de22c8940ce 100644 --- a/reactos/subsys/system/cmd/internal.c +++ b/reactos/subsys/system/cmd/internal.c @@ -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);