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:
jyao1 2011-01-05 13:43:00 +00:00
parent 2244198233
commit b16ad4b87b
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}