From dc419a5f0eba09f2b668837ce959d9225797f7e1 Mon Sep 17 00:00:00 2001 From: SergeySlice Date: Wed, 22 Apr 2020 07:42:10 +0300 Subject: [PATCH] use length 5 for failure report (?) Signed-off-by: SergeySlice --- rEFIt_UEFI/Platform/DataHubCpu.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rEFIt_UEFI/Platform/DataHubCpu.cpp b/rEFIt_UEFI/Platform/DataHubCpu.cpp index e56b3e297..3cbead2d5 100644 --- a/rEFIt_UEFI/Platform/DataHubCpu.cpp +++ b/rEFIt_UEFI/Platform/DataHubCpu.cpp @@ -400,8 +400,8 @@ SetVariablesForOSX(LOADER_ENTRY *Entry) //one more variable can be set for 10.15.4 //sudo nvram wake-failure=%00%00%00%00%00 - Color = 0; - AddNvramVariable(L"wake-failure", &gEfiAppleBootGuid, Attributes, 4, &Color); + LangLen = 0; + AddNvramVariable(L"wake-failure", &gEfiAppleBootGuid, Attributes, 5, &LangLen); return EFI_SUCCESS; }