mirror of
https://github.com/reactos/reactos.git
synced 2025-05-08 11:24:14 +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];
|
TCHAR szMsg[RC_STRING_MAX_SIZE];
|
||||||
LPTSTR lpOptions;
|
LPTSTR lpOptions;
|
||||||
TCHAR Options[4];
|
TCHAR Options[6];
|
||||||
LPTSTR lpText = NULL;
|
LPTSTR lpText = NULL;
|
||||||
BOOL bNoPrompt = FALSE;
|
BOOL bNoPrompt = FALSE;
|
||||||
BOOL bCaseSensitive = FALSE;
|
BOOL bCaseSensitive = FALSE;
|
||||||
|
@ -240,13 +240,23 @@ CommandChoice (LPTSTR cmd, LPTSTR param)
|
||||||
{
|
{
|
||||||
ConInKey (&ir);
|
ConInKey (&ir);
|
||||||
|
|
||||||
|
if (bNoPrompt != FALSE)
|
||||||
|
{
|
||||||
val = IsKeyInString (lpOptions,
|
val = IsKeyInString (lpOptions,
|
||||||
#ifdef _UNICODE
|
#ifdef _UNICODE
|
||||||
ir.Event.KeyEvent.uChar.UnicodeChar,
|
ir.Event.KeyEvent.uChar.UnicodeChar,
|
||||||
#else
|
#else
|
||||||
ir.Event.KeyEvent.uChar.AsciiChar,
|
ir.Event.KeyEvent.uChar.AsciiChar,
|
||||||
#endif /* _UNICODE */
|
#endif
|
||||||
bCaseSensitive);
|
bCaseSensitive);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
|
||||||
|
val = IsKeyInString (lpOptions,
|
||||||
|
ir.Event.KeyEvent.uChar.UnicodeChar,
|
||||||
|
bCaseSensitive);
|
||||||
|
}
|
||||||
|
|
||||||
if (val >= 0)
|
if (val >= 0)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue