]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Library/DxePlatDriOverLib/PlatDriOverLib.c
Fix VS2005 build error
[mirror_edk2.git] / MdeModulePkg / Library / DxePlatDriOverLib / PlatDriOverLib.c
index 1859f026c854605afc6ccf876011f867d5fc004a..81570a2111deb7ed778be24bb987051a4719b2f3 100644 (file)
@@ -468,6 +468,7 @@ SaveOverridesMapping (
     // ItemIndex now points to the next PLATFORM_OVERRIDE_ITEM which is not covered by VariableNeededSize\r
     //\r
     VariableBuffer = AllocateZeroPool (VariableNeededSize);\r
+    ASSERT (VariableBuffer != NULL);\r
     ASSERT ((UINTN) VariableBuffer % sizeof(UINTN) == 0);\r
 \r
     //\r