Author: cwittich
Date: Thu Jan 31 20:26:57 2008
New Revision: 32067
URL:
http://svn.reactos.org/svn/reactos?rev=32067&view=rev
Log:
don't print the new color value when echo is off
Modified:
trunk/reactos/base/shell/cmd/color.c
Modified: trunk/reactos/base/shell/cmd/color.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/shell/cmd/color.c?rev…
==============================================================================
--- trunk/reactos/base/shell/cmd/color.c (original)
+++ trunk/reactos/base/shell/cmd/color.c Thu Jan 31 20:26:57 2008
@@ -113,8 +113,11 @@
return 1;
}
- LoadString(CMD_ModuleHandle, STRING_COLOR_ERROR3, szMsg, RC_STRING_MAX_SIZE);
- ConErrPrintf(szMsg, wColor);
+ if (((bc) && (bc->bEcho)) || !bc)
+ {
+ LoadString(CMD_ModuleHandle, STRING_COLOR_ERROR3, szMsg, RC_STRING_MAX_SIZE);
+ ConErrPrintf(szMsg, wColor);
+ }
if ((wColor & 0xF) == (wColor &0xF0) >> 4)
{