remove now-pointless if statement
authorRoyce Mitchell III <royce3@ev1.net>
Tue, 20 Sep 2005 20:13:16 +0000 (20:13 +0000)
committerRoyce Mitchell III <royce3@ev1.net>
Tue, 20 Sep 2005 20:13:16 +0000 (20:13 +0000)
add a little more debug output

svn path=/trunk/; revision=17952

reactos/subsys/system/cmd/choice.c

index ca44d85..095a6b5 100644 (file)
@@ -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 
-                                            bCaseSensitive);
-      }
-      else
-      {
 
-      val = IsKeyInString (lpOptions,
+                       val = IsKeyInString (lpOptions,
 #ifdef _UNICODE
                                             ir.Event.KeyEvent.uChar.UnicodeChar,
 #else
                                             ir.Event.KeyEvent.uChar.AsciiChar,
-#endif 
+#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;
        }