OcMemoryLib: Improve portability, thx @nms42

closes acidanthera/bugtracker#642
This commit is contained in:
vit9696 2020-01-10 11:38:21 +03:00
parent 83eebf2a65
commit c424c685d2

View File

@ -174,7 +174,7 @@ GetCurrentMemoryMapAlloc (
if (EFI_ERROR (Status)) {
if (TopMemory != NULL) {
gBS->FreePages (
(EFI_PHYSICAL_ADDRESS) *MemoryMap,
(EFI_PHYSICAL_ADDRESS) ((UINTN) *MemoryMap),
(UINTN) *TopMemory
);
} else {