Remove ASSERT to let DXE core return gracefully when loading an invalid image.

Signed-off-by: gdong1
Reviewed-by: jyao1
Reviewed-by: CZhang46

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13035 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
gdong1 2012-02-27 02:33:20 +00:00
parent f74dc4bbba
commit 65cc57fc41
1 changed files with 1 additions and 3 deletions

View File

@ -1,7 +1,7 @@
/** @file /** @file
The library instance provides security service of TPM measure boot. The library instance provides security service of TPM measure boot.
Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.<BR> Copyright (c) 2009 - 2012, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at which accompanies this distribution. The full text of the license may be found at
@ -304,8 +304,6 @@ TcgMeasurePeImage (
"TcgMeasurePeImage: Unknown subsystem type %d", "TcgMeasurePeImage: Unknown subsystem type %d",
ImageType ImageType
)); ));
ASSERT (FALSE);
TcgEvent->EventType = ImageType;
Status = EFI_UNSUPPORTED; Status = EFI_UNSUPPORTED;
goto Finish; goto Finish;
} }