mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
fix a small bug in choice.c so it does print out choice "sadsad" right
svn path=/trunk/; revision=16456
This commit is contained in:
parent
2fc5a38d16
commit
1369d1649e
1 changed files with 4 additions and 4 deletions
|
@ -105,7 +105,7 @@ CommandChoice (LPTSTR cmd, LPTSTR param)
|
|||
{
|
||||
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 @@ CommandChoice (LPTSTR cmd, LPTSTR param)
|
|||
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 @@ CommandChoice (LPTSTR cmd, LPTSTR param)
|
|||
|
||||
for (i = 1; (unsigned)i < _tcslen (lpOptions); i++)
|
||||
ConOutPrintf (_T(",%c"), lpOptions[i]);
|
||||
|
||||
|
||||
ConOutPrintf (_T("]?"));
|
||||
}
|
||||
|
||||
|
@ -239,7 +239,7 @@ CommandChoice (LPTSTR cmd, LPTSTR param)
|
|||
while (TRUE)
|
||||
{
|
||||
ConInKey (&ir);
|
||||
|
||||
|
||||
val = IsKeyInString (lpOptions,
|
||||
#ifdef _UNICODE
|
||||
ir.Event.KeyEvent.uChar.UnicodeChar,
|
||||
|
|
Loading…
Reference in a new issue