mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
hopeful it is last bug in choice.c when you type choice "sadsa" it did not response on key press at all.
svn path=/trunk/; revision=16457
This commit is contained in:
parent
1369d1649e
commit
c9b36033d8
1 changed files with 13 additions and 3 deletions
|
@ -105,7 +105,7 @@ CommandChoice (LPTSTR cmd, LPTSTR param)
|
|||
{
|
||||
TCHAR szMsg[RC_STRING_MAX_SIZE];
|
||||
LPTSTR lpOptions;
|
||||
TCHAR Options[4];
|
||||
TCHAR Options[6];
|
||||
LPTSTR lpText = NULL;
|
||||
BOOL bNoPrompt = FALSE;
|
||||
BOOL bCaseSensitive = FALSE;
|
||||
|
@ -240,16 +240,26 @@ CommandChoice (LPTSTR cmd, LPTSTR param)
|
|||
{
|
||||
ConInKey (&ir);
|
||||
|
||||
if (bNoPrompt != FALSE)
|
||||
{
|
||||
val = IsKeyInString (lpOptions,
|
||||
#ifdef _UNICODE
|
||||
ir.Event.KeyEvent.uChar.UnicodeChar,
|
||||
#else
|
||||
ir.Event.KeyEvent.uChar.AsciiChar,
|
||||
#endif /* _UNICODE */
|
||||
#endif
|
||||
bCaseSensitive);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
val = IsKeyInString (lpOptions,
|
||||
ir.Event.KeyEvent.uChar.UnicodeChar,
|
||||
bCaseSensitive);
|
||||
}
|
||||
|
||||
if (val >= 0)
|
||||
{
|
||||
{
|
||||
ConOutPrintf (_T("%c\n"), lpOptions[val]);
|
||||
|
||||
nErrorLevel = val + 1;
|
||||
|
|
Loading…
Reference in a new issue