Remove ASSERT to let DXE core return gracefully when loading an invalid image.
authorgdong1 <gdong1@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 27 Feb 2012 02:33:20 +0000 (02:33 +0000)
committergdong1 <gdong1@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 27 Feb 2012 02:33:20 +0000 (02:33 +0000)
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

SecurityPkg/Library/DxeTpmMeasureBootLib/DxeTpmMeasureBootLib.c

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