mirror of https://github.com/acidanthera/audk.git
Check the return status of booting against EFI_SUCCESS instead of using EFI_ERROR() macro to catch the warning status.
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
This commit is contained in:
parent
8cb3ed513e
commit
59b9d73e5f
|
@ -5,7 +5,7 @@
|
||||||
After DxeCore finish DXE phase, gEfiBdsArchProtocolGuid->BdsEntry will be invoked
|
After DxeCore finish DXE phase, gEfiBdsArchProtocolGuid->BdsEntry will be invoked
|
||||||
to enter BDS phase.
|
to enter BDS phase.
|
||||||
|
|
||||||
Copyright (c) 2004 - 2010, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2004 - 2011, 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
|
||||||
|
@ -219,7 +219,7 @@ BdsBootDeviceSelect (
|
||||||
// now boot will be performed.
|
// now boot will be performed.
|
||||||
//
|
//
|
||||||
Status = BdsLibBootViaBootOption (BootOption, BootOption->DevicePath, &ExitDataSize, &ExitData);
|
Status = BdsLibBootViaBootOption (BootOption, BootOption->DevicePath, &ExitDataSize, &ExitData);
|
||||||
if (EFI_ERROR (Status)) {
|
if (Status != EFI_SUCCESS) {
|
||||||
//
|
//
|
||||||
// Call platform action to indicate the boot fail
|
// Call platform action to indicate the boot fail
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in New Issue