OcAppleBootCompatLib: Fix windows build failure regression
@@ -477,6 +477,14 @@ OcSetVirtualAddressMap (
gRT->Hdr.CRC32 = 0;
gRT->Hdr.CRC32 = CalculateCrc32 (gRT, gRT->Hdr.HeaderSize);
+ if (BootCompat->ServiceState.AppleBootNestedCount == 0) {
+ Status = gRT->SetVirtualAddressMap (
+ MemoryMapSize,
+ DescriptorSize,
+ DescriptorVersion,
+ MemoryMap
+ );
+ } else {
Status = AppleMapPrepareMemState (
BootCompat,
MemoryMapSize,
@@ -484,6 +492,7 @@ OcSetVirtualAddressMap (
DescriptorVersion,
MemoryMap
);
+ }
return Status;
}
