From 6066a9e752227f31f155c35521e1474eaff4ec51 Mon Sep 17 00:00:00 2001 From: vit9696 Date: Thu, 11 Apr 2019 11:38:58 +0300 Subject: [PATCH] OpenCorePlatform: Fix MLB and ROM sizes --- Platform/OpenCore/OpenCorePlatform.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Platform/OpenCore/OpenCorePlatform.c b/Platform/OpenCore/OpenCorePlatform.c index cd8a08d0..1f65241f 100644 --- a/Platform/OpenCore/OpenCorePlatform.c +++ b/Platform/OpenCore/OpenCorePlatform.c @@ -280,7 +280,7 @@ OcPlatformUpdateNvram ( L"HW_ROM", &gAppleVendorVariableGuid, EFI_VARIABLE_BOOTSERVICE_ACCESS | EFI_VARIABLE_RUNTIME_ACCESS, - sizeof (Config->PlatformInfo.Nvram.Rom) - 1, + sizeof (Config->PlatformInfo.Nvram.Rom), Rom ); DEBUG (( @@ -294,7 +294,7 @@ OcPlatformUpdateNvram ( L"ROM", &gAppleVendorVariableGuid, EFI_VARIABLE_BOOTSERVICE_ACCESS | EFI_VARIABLE_RUNTIME_ACCESS, - sizeof (Config->PlatformInfo.Nvram.Rom) - 1, + sizeof (Config->PlatformInfo.Nvram.Rom), Rom ); DEBUG (( @@ -310,7 +310,7 @@ OcPlatformUpdateNvram ( L"HW_MLB", &gAppleVendorVariableGuid, EFI_VARIABLE_BOOTSERVICE_ACCESS | EFI_VARIABLE_RUNTIME_ACCESS, - Config->PlatformInfo.Nvram.Mlb.Size - 1, + Config->PlatformInfo.Nvram.Mlb.Size, Mlb ); DEBUG (( @@ -324,7 +324,7 @@ OcPlatformUpdateNvram ( L"MLB", &gAppleVendorVariableGuid, EFI_VARIABLE_BOOTSERVICE_ACCESS | EFI_VARIABLE_RUNTIME_ACCESS, - Config->PlatformInfo.Nvram.Mlb.Size - 1, + Config->PlatformInfo.Nvram.Mlb.Size, Mlb ); DEBUG (( -- GitLab