X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=MdeModulePkg%2FCore%2FDxe%2FImage%2FImageFile.c;h=b132cf49d59f192e0d63ab416c01782d01bbd10f;hp=453e88b940aca19604d658889d41fe3c8f001588;hb=20bcdbcb69a63df43d897b51634a38df4e261b49;hpb=13f0a970d20b0a88aa4929fb647faf880b35f3c9 diff --git a/MdeModulePkg/Core/Dxe/Image/ImageFile.c b/MdeModulePkg/Core/Dxe/Image/ImageFile.c index 453e88b940..b132cf49d5 100644 --- a/MdeModulePkg/Core/Dxe/Image/ImageFile.c +++ b/MdeModulePkg/Core/Dxe/Image/ImageFile.c @@ -290,6 +290,7 @@ CoreOpenImageFile ( // // Allocate space for the file // + ASSERT (FileInfo != NULL); ImageFileHandle->Source = AllocatePool ((UINTN)FileInfo->FileSize); if (ImageFileHandle->Source != NULL) { //