diff --git a/reactos/subsys/system/cmd/En.rc b/reactos/subsys/system/cmd/En.rc index 917aca37bab..bd26723ce95 100644 --- a/reactos/subsys/system/cmd/En.rc +++ b/reactos/subsys/system/cmd/En.rc @@ -276,7 +276,7 @@ GOTO label\n\n\ label Specifies a text string used in a batch script as a label.\n\n\ You type a label on a line by itself, beginning with a colon." -STRING_LABEL_HELP1, "Displays or changes drive label.\n\nLABEL [drive:][label]" +STRING_LABEL_HELP1, "Displays or changes drive label.\n\nLABEL [drive:][label]\n" STRING_LABEL_HELP2, "Volume in drive %c: is %s\n" STRING_LABEL_HELP3, "Volume in drive %c: has no label\n" diff --git a/reactos/subsys/system/cmd/label.c b/reactos/subsys/system/cmd/label.c index 9470d6a5b67..670e0b3deb9 100644 --- a/reactos/subsys/system/cmd/label.c +++ b/reactos/subsys/system/cmd/label.c @@ -43,6 +43,8 @@ INT cmd_label (LPTSTR cmd, LPTSTR param) return 0; } + nErrorLevel = 0; + /* get parameters */ arg = split (param, &args, FALSE); @@ -51,6 +53,7 @@ INT cmd_label (LPTSTR cmd, LPTSTR param) /* too many parameters */ error_too_many_parameters (arg[args - 1]); freep (arg); + nErrorLevel = 1; return 1; } @@ -83,6 +86,7 @@ INT cmd_label (LPTSTR cmd, LPTSTR param) { error_invalid_drive (); freep (arg); + nErrorLevel = 1; return 1; }