mirror of https://github.com/acidanthera/audk.git
Correct return value check.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11227 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
2244198233
commit
b16ad4b87b
|
@ -889,7 +889,7 @@ InitializeScriptSaveOnS3SaveState (
|
|||
// Allocate BootScriptThunkData
|
||||
//
|
||||
BootScriptThunkData = AllocatePool (sizeof (BOOT_SCRIPT_THUNK_DATA));
|
||||
if (EFI_ERROR (Status)) {
|
||||
if (BootScriptThunkData == NULL) {
|
||||
return EFI_OUT_OF_RESOURCES;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue