remove now-pointless if statement

add a little more debug output

svn path=/trunk/; revision=17952
This commit is contained in:
Royce Mitchell III 2005-09-20 20:13:16 +00:00
parent d91a17bcbc
commit 39fd46a7b3

View file

@ -240,8 +240,6 @@ 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,
@ -249,18 +247,6 @@ CommandChoice (LPTSTR cmd, LPTSTR param)
ir.Event.KeyEvent.uChar.AsciiChar, ir.Event.KeyEvent.uChar.AsciiChar,
#endif #endif
bCaseSensitive); bCaseSensitive);
}
else
{
val = IsKeyInString (lpOptions,
#ifdef _UNICODE
ir.Event.KeyEvent.uChar.UnicodeChar,
#else
ir.Event.KeyEvent.uChar.AsciiChar,
#endif
bCaseSensitive);
}
if (val >= 0) if (val >= 0)
{ {
@ -275,6 +261,9 @@ CommandChoice (LPTSTR cmd, LPTSTR param)
} }
freep (arg); freep (arg);
#ifdef _DEBUG
DebugPrintf (_T("ErrorLevel: %d\n"), nErrorLevel);
#endif /* _DEBUG */
return 0; return 0;
} }