From 39fd46a7b379922ee940d06a3c67dee458f7f5ad Mon Sep 17 00:00:00 2001 From: Royce Mitchell III Date: Tue, 20 Sep 2005 20:13:16 +0000 Subject: [PATCH] remove now-pointless if statement add a little more debug output svn path=/trunk/; revision=17952 --- reactos/subsys/system/cmd/choice.c | 21 +++++---------------- 1 file changed, 5 insertions(+), 16 deletions(-) diff --git a/reactos/subsys/system/cmd/choice.c b/reactos/subsys/system/cmd/choice.c index ca44d85965f..095a6b5e83d 100644 --- a/reactos/subsys/system/cmd/choice.c +++ b/reactos/subsys/system/cmd/choice.c @@ -239,28 +239,14 @@ CommandChoice (LPTSTR cmd, LPTSTR param) while (TRUE) { ConInKey (&ir); - - if (bNoPrompt != FALSE) - { + val = IsKeyInString (lpOptions, #ifdef _UNICODE ir.Event.KeyEvent.uChar.UnicodeChar, #else ir.Event.KeyEvent.uChar.AsciiChar, -#endif +#endif bCaseSensitive); - } - else - { - - val = IsKeyInString (lpOptions, -#ifdef _UNICODE - ir.Event.KeyEvent.uChar.UnicodeChar, -#else - ir.Event.KeyEvent.uChar.AsciiChar, -#endif - bCaseSensitive); - } if (val >= 0) { @@ -275,6 +261,9 @@ CommandChoice (LPTSTR cmd, LPTSTR param) } freep (arg); +#ifdef _DEBUG + DebugPrintf (_T("ErrorLevel: %d\n"), nErrorLevel); +#endif /* _DEBUG */ return 0; }