git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4679
6f19259b-4bc3-4df7-8a09-
765794883524
// Now Runtime mode doesn't support the non-reset capsule image.\r
//\r
if (EfiAtRuntime ()) {\r
- return EFI_INVALID_PARAMETER;\r
+ return EFI_UNSUPPORTED;\r
}\r
\r
//\r
// Make sure RT Attribute is set if we are in Runtime phase.\r
//\r
return EFI_INVALID_PARAMETER;\r
- } else if (EfiAtRuntime () && Attributes && !(Attributes & EFI_VARIABLE_NON_VOLATILE)) {\r
- //\r
- // Cannot Query volatile variable in Runtime\r
- //\r
- return EFI_INVALID_PARAMETER;\r
}\r
\r
AcquireLockOnlyAtBootTime(&Global->VariableServicesLock);\r