提交 6c188569 编写于 作者: J John Davis

OcAppleKernelLib: Fix potential null reference and account for kxld symbols

上级 2f9a15d7
......@@ -285,6 +285,7 @@ PatcherGetSymbolAddressValue (
//
// Proceed to success.
//
SymbolAddress = Context->Is32Bit ? Symbol->Symbol32.Value : Symbol->Symbol64.Value;
break;
}
......@@ -299,7 +300,7 @@ PatcherGetSymbolAddressValue (
}
if (Value != NULL) {
*Value = Context->Is32Bit ? Symbol->Symbol32.Value : Symbol->Symbol64.Value;
*Value = SymbolAddress;
}
return EFI_SUCCESS;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册