diff --git a/Library/OcMemoryLib/MemoryMap.c b/Library/OcMemoryLib/MemoryMap.c index e90da4ab..a30ad6b3 100644 --- a/Library/OcMemoryLib/MemoryMap.c +++ b/Library/OcMemoryLib/MemoryMap.c @@ -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 {