From a478151d4c60eb87a4fc3c32d7b609de4baf066c Mon Sep 17 00:00:00 2001 From: Christoph von Wittich Date: Mon, 3 Sep 2007 17:40:30 +0000 Subject: [PATCH] fix a small bug in set and added missing german translations svn path=/trunk/; revision=28821 --- reactos/base/shell/cmd/lang/de-DE.rc | 5 +++++ reactos/base/shell/cmd/set.c | 7 +++++++ 2 files changed, 12 insertions(+) diff --git a/reactos/base/shell/cmd/lang/de-DE.rc b/reactos/base/shell/cmd/lang/de-DE.rc index 1bbcfa771b1..277772391fe 100644 --- a/reactos/base/shell/cmd/lang/de-DE.rc +++ b/reactos/base/shell/cmd/lang/de-DE.rc @@ -643,4 +643,9 @@ STRING_FOR_ERROR, "ung STRING_SCREEN_COL, "ungültige Spalten-Angabe" STRING_SCREEN_ROW, "ungültige Zeilen-Angabe" STRING_TIMER_TIME "Timer %d ist %s: " + +STRING_INVALID_OPERAND, "Ungültiger Operand." +STRING_EXPECTED_CLOSE_PAREN, "Erwartet ')'." +STRING_EXPECTED_NUMBER_OR_VARIABLE,"Erwartet Nummer oder Variablennamen." +STRING_SYNTAX_COMMAND_INCORRECT, "Syntaxfehler." } diff --git a/reactos/base/shell/cmd/set.c b/reactos/base/shell/cmd/set.c index 522c340bb0e..0632e8c65f0 100644 --- a/reactos/base/shell/cmd/set.c +++ b/reactos/base/shell/cmd/set.c @@ -112,6 +112,13 @@ INT cmd_set (LPTSTR cmd, LPTSTR param) return Success; } + if ( !_tcsnicmp (param, _T("/"), 1) ) + { + LoadString(CMD_ModuleHandle, STRING_SYNTAX_COMMAND_INCORRECT, szMsg, RC_STRING_MAX_SIZE); + ConErrPrintf (szMsg, param); + return 0; + } + p = _tcschr (param, _T('=')); if (p) {