]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Check the return status of booting against EFI_SUCCESS instead of using EFI_ERROR...
authorniruiyu <niruiyu@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 8 Nov 2011 03:10:36 +0000 (03:10 +0000)
committerniruiyu <niruiyu@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 8 Nov 2011 03:10:36 +0000 (03:10 +0000)
Signed-off-by: niruiyu
Reviewed-by: li-elvin
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12668 6f19259b-4bc3-4df7-8a09-765794883524

IntelFrameworkModulePkg/Universal/BdsDxe/BdsEntry.c

index 1cc383e3e51f7d0d679fb5f5dd94120a9e83e4ba..774049c8c103f736f74ce745ac22ccbfad4c3a31 100644 (file)
@@ -5,7 +5,7 @@
   After DxeCore finish DXE phase, gEfiBdsArchProtocolGuid->BdsEntry will be invoked\r
   to enter BDS phase.\r
 \r
-Copyright (c) 2004 - 2010, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2004 - 2011, 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
@@ -219,7 +219,7 @@ BdsBootDeviceSelect (
     // now boot will be performed.\r
     //\r
     Status = BdsLibBootViaBootOption (BootOption, BootOption->DevicePath, &ExitDataSize, &ExitData);\r
-    if (EFI_ERROR (Status)) {\r
+    if (Status != EFI_SUCCESS) {\r
       //\r
       // Call platform action to indicate the boot fail\r
       //\r