mirror of https://github.com/acidanthera/audk.git
ArmPlatformPkg/Bds: Fix GetConsoleDevicePathFromVariable() when SetVariable has failed
Return the Default Device Path even when SetVariable has failed. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12469 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
0bade1054d
commit
705b0c031f
|
@ -74,7 +74,7 @@ GetConsoleDevicePathFromVariable (
|
||||||
// Set the environment variable with this device path multi-instances
|
// Set the environment variable with this device path multi-instances
|
||||||
Size = GetDevicePathSize (DevicePathInstances);
|
Size = GetDevicePathSize (DevicePathInstances);
|
||||||
if (Size > 0) {
|
if (Size > 0) {
|
||||||
Status = gRT->SetVariable (
|
gRT->SetVariable (
|
||||||
ConsoleVarName,
|
ConsoleVarName,
|
||||||
&gEfiGlobalVariableGuid,
|
&gEfiGlobalVariableGuid,
|
||||||
EFI_VARIABLE_NON_VOLATILE | EFI_VARIABLE_BOOTSERVICE_ACCESS | EFI_VARIABLE_RUNTIME_ACCESS,
|
EFI_VARIABLE_NON_VOLATILE | EFI_VARIABLE_BOOTSERVICE_ACCESS | EFI_VARIABLE_RUNTIME_ACCESS,
|
||||||
|
|
Loading…
Reference in New Issue