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:
oliviermartin 2011-09-28 19:05:54 +00:00
parent 0bade1054d
commit 705b0c031f
1 changed files with 440 additions and 440 deletions

View File

@ -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,