]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EmbeddedPkg/Library/PrePiMemoryAllocationLib/MemoryAllocationLib.c
EmbeddedPkg/PrePiMemoryAllocationLib: use correct size for pool hob
[mirror_edk2.git] / EmbeddedPkg / Library / PrePiMemoryAllocationLib / MemoryAllocationLib.c
index 6d233acb98d73c3e8352a4144159a89020355ee0..bae6682c72b6b9d160b26b2af4d76c1344925753 100644 (file)
@@ -184,7 +184,9 @@ AllocatePool (
     return 0;\r
   } else {\r
 \r
-    Hob = (EFI_HOB_MEMORY_POOL *)CreateHob (EFI_HOB_TYPE_MEMORY_POOL, (UINT16)(sizeof (EFI_HOB_TYPE_MEMORY_POOL) + AllocationSize));\r
+    Hob = (EFI_HOB_MEMORY_POOL *)CreateHob (EFI_HOB_TYPE_MEMORY_POOL,\r
+                                   (UINT16)(sizeof (EFI_HOB_MEMORY_POOL) +\r
+                                            AllocationSize));\r
     return (VOID *)(Hob + 1);\r
   }\r
 }\r