]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/PropertiesTableAttributesDxe/PropertiesTableAttributesDxe.c
MdeModulePkg: Refine code to make it more readable.
[mirror_edk2.git] / MdeModulePkg / Universal / PropertiesTableAttributesDxe / PropertiesTableAttributesDxe.c
index 6e5c4f8fcd1e1b11e3e29e3f45e6d0088488b430..718c56734625c12ff8a08f275ca9b97f1796dbd1 100644 (file)
@@ -130,6 +130,8 @@ UpdateMemoryAttributesDefault (
   if (EFI_ERROR (Status)) {\r
     goto Done;\r
   }\r
+  \r
+  ASSERT (PropertiesTable != NULL);\r
 \r
   DEBUG ((EFI_D_INFO, "MemoryProtectionAttribute - 0x%016lx\n", PropertiesTable->MemoryProtectionAttribute));\r
   if ((PropertiesTable->MemoryProtectionAttribute & EFI_PROPERTIES_RUNTIME_MEMORY_PROTECTION_NON_EXECUTABLE_PE_DATA) == 0) {\r