提交 6f0a8a1a 编写于 作者: V vit9696

OcAppleBootCompatLib: Fix Status overwrite with GetExecArea call

上级 fa82d3fd
......@@ -358,6 +358,7 @@ OcGetMemoryMap (
)
{
EFI_STATUS Status;
EFI_STATUS Status2;
BOOT_COMPAT_CONTEXT *BootCompat;
EFI_PHYSICAL_ADDRESS Address;
UINTN Pages;
......@@ -377,9 +378,9 @@ OcGetMemoryMap (
}
if (BootCompat->Settings.SyncRuntimePermissions && BootCompat->ServiceState.FwRuntime != NULL) {
Status = BootCompat->ServiceState.FwRuntime->GetExecArea (&Address, &Pages);
Status2 = BootCompat->ServiceState.FwRuntime->GetExecArea (&Address, &Pages);
if (!EFI_ERROR (Status)) {
if (!EFI_ERROR (Status2)) {
OcUpdateDescriptors (
*MemoryMapSize,
MemoryMap,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册