don't print the new color value when echo is off

svn path=/trunk/; revision=32067
This commit is contained in:
Christoph von Wittich 2008-01-31 17:26:57 +00:00
parent c3148085fe
commit 00e33fbce3

View file

@ -113,8 +113,11 @@ INT CommandColor (LPTSTR first, LPTSTR rest)
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)
{