From c424c685d2f77da2ba4d019ff7b8d0b99f6afcf6 Mon Sep 17 00:00:00 2001 From: vit9696 Date: Fri, 10 Jan 2020 11:38:21 +0300 Subject: [PATCH] OcMemoryLib: Improve portability, thx @nms42 closes acidanthera/bugtracker#642 --- Library/OcMemoryLib/MemoryMap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {