mirror of
https://github.com/acidanthera/audk.git
synced 2025-04-08 17:05:09 +02:00
Svace: Fixed DEREF_OF_NULL.RET.LIB warning.
This commit is contained in:
parent
2a344cfd14
commit
a53ac66d8e
@ -1028,6 +1028,7 @@ FvbInitialize (
|
||||
//
|
||||
FvMemmapDevicePath = AllocateCopyPool (sizeof (FV_MEMMAP_DEVICE_PATH),
|
||||
&mFvMemmapDevicePathTemplate);
|
||||
ASSERT (FvMemmapDevicePath != NULL);
|
||||
FvMemmapDevicePath->MemMapDevPath.StartingAddress = BaseAddress;
|
||||
FvMemmapDevicePath->MemMapDevPath.EndingAddress =
|
||||
BaseAddress + FwVolHeader->FvLength - 1;
|
||||
@ -1037,6 +1038,7 @@ FvbInitialize (
|
||||
|
||||
FvPiwgDevicePath = AllocateCopyPool (sizeof (FV_PIWG_DEVICE_PATH),
|
||||
&mFvPIWGDevicePathTemplate);
|
||||
ASSERT (FvPiwgDevicePath != NULL);
|
||||
CopyGuid (
|
||||
&FvPiwgDevicePath->FvDevPath.FvName,
|
||||
(GUID *)(UINTN)(BaseAddress + FwVolHeader->ExtHeaderOffset)
|
||||
|
Loading…
x
Reference in New Issue
Block a user