summaryrefslogtreecommitdiff
path: root/ShellPkg/Application/Shell/ShellEnvVar.h
diff options
context:
space:
mode:
authorRuiyu Ni <ruiyu.ni@intel.com>2016-07-08 15:18:14 +0800
committerRuiyu Ni <ruiyu.ni@intel.com>2016-07-18 10:54:59 +0800
commit31e5b912b99e0fb39e81f70bc24a4be589191abb (patch)
treec9bdc2f2a966a35327231d833e935b5d33571739 /ShellPkg/Application/Shell/ShellEnvVar.h
parentb2c036a7f016bc8808c5eb8eb3dd5399a96664b9 (diff)
downloadedk2-platforms-31e5b912b99e0fb39e81f70bc24a4be589191abb.tar.xz
ShellPkg/IsVolatileEnv: Handle memory allocation failure
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com> Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
Diffstat (limited to 'ShellPkg/Application/Shell/ShellEnvVar.h')
-rw-r--r--ShellPkg/Application/Shell/ShellEnvVar.h15
1 files changed, 7 insertions, 8 deletions
diff --git a/ShellPkg/Application/Shell/ShellEnvVar.h b/ShellPkg/Application/Shell/ShellEnvVar.h
index dd88b29fa0..5356580759 100644
--- a/ShellPkg/Application/Shell/ShellEnvVar.h
+++ b/ShellPkg/Application/Shell/ShellEnvVar.h
@@ -34,19 +34,18 @@ extern ENV_VAR_LIST gShellEnvVarList;
/**
- Reports whether an environment variable is Volatile or Non-Volatile
-
- This will use the Runtime Services call GetVariable to to search for the variable.
+ Reports whether an environment variable is Volatile or Non-Volatile.
@param EnvVarName The name of the environment variable in question
+ @param Volatile Return TRUE if the environment variable is volatile
- @retval TRUE This environment variable is Volatile
- @retval FALSE This environment variable is NON-Volatile
+ @retval EFI_SUCCESS The volatile attribute is returned successfully
+ @retval others Some errors happened.
**/
-BOOLEAN
-EFIAPI
+EFI_STATUS
IsVolatileEnv (
- IN CONST CHAR16 *EnvVarName
+ IN CONST CHAR16 *EnvVarName,
+ OUT BOOLEAN *Volatile
);
/**