From 937c45501c76d77c0fba4841a9dacd40664cdcc1 Mon Sep 17 00:00:00 2001 From: vit9696 Date: Sun, 3 Nov 2019 01:51:51 +0300 Subject: [PATCH] OcBootManagementLib: Fix interpreting letters in boot menu --- Library/OcBootManagementLib/OcBootManagementLib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/OcBootManagementLib/OcBootManagementLib.c b/Library/OcBootManagementLib/OcBootManagementLib.c index 7fd5afe0..6618163e 100644 --- a/Library/OcBootManagementLib/OcBootManagementLib.c +++ b/Library/OcBootManagementLib/OcBootManagementLib.c @@ -1069,7 +1069,7 @@ OcWaitForAppleKeyIndex ( for (KeyCode = AppleHidUsbKbUsageKeyA; KeyCode <= AppleHidUsbKbUsageKeyZ; ++KeyCode) { Status = KeyMap->ContainsKeyStrokes (KeyMap, 0, 1, &KeyCode, TRUE); if (!EFI_ERROR (Status)) { - return (INTN) (KeyCode - AppleHidUsbKbUsageKeyA + 10); + return (INTN) (KeyCode - AppleHidUsbKbUsageKeyA + 9); } }