Correct return status for the unsupported condition

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4679 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
lgao4 2008-02-05 04:41:53 +00:00
parent 39aea48d30
commit 17b875379f
2 changed files with 1 additions and 6 deletions

View File

@ -125,7 +125,7 @@ Returns:
// Now Runtime mode doesn't support the non-reset capsule image. // Now Runtime mode doesn't support the non-reset capsule image.
// //
if (EfiAtRuntime ()) { if (EfiAtRuntime ()) {
return EFI_INVALID_PARAMETER; return EFI_UNSUPPORTED;
} }
// //

View File

@ -730,11 +730,6 @@ Returns:
// Make sure RT Attribute is set if we are in Runtime phase. // Make sure RT Attribute is set if we are in Runtime phase.
// //
return EFI_INVALID_PARAMETER; return EFI_INVALID_PARAMETER;
} else if (EfiAtRuntime () && Attributes && !(Attributes & EFI_VARIABLE_NON_VOLATILE)) {
//
// Cannot Query volatile variable in Runtime
//
return EFI_INVALID_PARAMETER;
} }
AcquireLockOnlyAtBootTime(&Global->VariableServicesLock); AcquireLockOnlyAtBootTime(&Global->VariableServicesLock);