Fix wrong judgement for gInMemory

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3946 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
klu2 2007-09-27 07:23:42 +00:00
parent 74b623789f
commit 5516d05a59
1 changed files with 3 additions and 4 deletions

View File

@ -109,15 +109,14 @@ PeimInitializeDxeIpl (
if (BootMode != BOOT_ON_S3_RESUME) {
Status = PeiServicesRegisterForShadow (FfsHandle);
if (Status == EFI_SUCCESS) {
gInMemory = TRUE;
//
// EFI_SUCESS means the first time call register for shadow
//
return Status;
} else if (Status == EFI_ALREADY_STARTED) {
gInMemory = TRUE;
//
// Get custom decompress method guid list
//