]> code.delx.au - refind/blobdiff - refind/menu.c
Fixed no timeout with keyboard disconnected; better duplicate loader
[refind] / refind / menu.c
index ff8f1a648dada7aae67332931c3805a535c3f4a2..8cf1cc8e98e8f8de09d2a63124711fbac4187386 100644 (file)
@@ -404,7 +404,7 @@ static UINTN RunGenericMenu(IN REFIT_MENU_SCREEN *Screen, IN MENU_STYLE_FUNC Sty
 
         // read key press (and wait for it if applicable)
         Status = refit_call2_wrapper(ST->ConIn->ReadKeyStroke, ST->ConIn, &key);
-        if (Status == EFI_NOT_READY) {
+        if (Status != EFI_SUCCESS) {
             if (HaveTimeout && TimeoutCountdown == 0) {
                 // timeout expired
                 MenuExit = MENU_EXIT_TIMEOUT;