fix a small bug in choice.c so it does print out choice "sadsad" right
Modified: trunk/reactos/subsys/system/cmd/choice.c
_____
Modified: trunk/reactos/subsys/system/cmd/choice.c
--- trunk/reactos/subsys/system/cmd/choice.c 2005-07-06 13:46:42 UTC
(rev 16455)
+++ trunk/reactos/subsys/system/cmd/choice.c 2005-07-06 13:50:08 UTC
(rev 16456)
@@ -105,7 +105,7 @@
{
TCHAR szMsg[RC_STRING_MAX_SIZE];
LPTSTR lpOptions;
- TCHAR Options[2];
+ TCHAR Options[4];
LPTSTR lpText = NULL;
BOOL bNoPrompt = FALSE;
BOOL bCaseSensitive = FALSE;
@@ -123,7 +123,7 @@
TCHAR Ch;
DWORD amount,clk;
- LoadString(CMD_ModuleHandle, STRING_CHOICE_OPTION, Options, 2);
+ LoadString(CMD_ModuleHandle, STRING_CHOICE_OPTION, Options, 4);
lpOptions = Options;
if (_tcsncmp (param, _T("/?"), 2) == 0)
@@ -228,7 +228,7 @@
for (i = 1; (unsigned)i < _tcslen (lpOptions); i++)
ConOutPrintf (_T(",%c"), lpOptions[i]);
-
+
ConOutPrintf (_T("]?"));
}
@@ -239,7 +239,7 @@
while (TRUE)
{
ConInKey (&ir);
-
+
val = IsKeyInString (lpOptions,
#ifdef _UNICODE
ir.Event.KeyEvent.uChar.UnicodeChar,