From b45fcd6e73493b4cf04aa2c43445e123f29729c6 Mon Sep 17 00:00:00 2001 From: Brandon Turner Date: Mon, 3 Oct 2005 00:51:24 +0000 Subject: [PATCH] fix detection of missing target. thanks to thomas. svn path=/trunk/; revision=18234 --- reactos/subsys/system/cmd/internal.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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);