mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-24 06:04:52 +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),
|
FvMemmapDevicePath = AllocateCopyPool (sizeof (FV_MEMMAP_DEVICE_PATH),
|
||||||
&mFvMemmapDevicePathTemplate);
|
&mFvMemmapDevicePathTemplate);
|
||||||
|
ASSERT (FvMemmapDevicePath != NULL);
|
||||||
FvMemmapDevicePath->MemMapDevPath.StartingAddress = BaseAddress;
|
FvMemmapDevicePath->MemMapDevPath.StartingAddress = BaseAddress;
|
||||||
FvMemmapDevicePath->MemMapDevPath.EndingAddress =
|
FvMemmapDevicePath->MemMapDevPath.EndingAddress =
|
||||||
BaseAddress + FwVolHeader->FvLength - 1;
|
BaseAddress + FwVolHeader->FvLength - 1;
|
||||||
@ -1037,6 +1038,7 @@ FvbInitialize (
|
|||||||
|
|
||||||
FvPiwgDevicePath = AllocateCopyPool (sizeof (FV_PIWG_DEVICE_PATH),
|
FvPiwgDevicePath = AllocateCopyPool (sizeof (FV_PIWG_DEVICE_PATH),
|
||||||
&mFvPIWGDevicePathTemplate);
|
&mFvPIWGDevicePathTemplate);
|
||||||
|
ASSERT (FvPiwgDevicePath != NULL);
|
||||||
CopyGuid (
|
CopyGuid (
|
||||||
&FvPiwgDevicePath->FvDevPath.FvName,
|
&FvPiwgDevicePath->FvDevPath.FvName,
|
||||||
(GUID *)(UINTN)(BaseAddress + FwVolHeader->ExtHeaderOffset)
|
(GUID *)(UINTN)(BaseAddress + FwVolHeader->ExtHeaderOffset)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user