summaryrefslogtreecommitdiff
path: root/ShellPkg/Application/Shell/ShellEnvVar.h
diff options
context:
space:
mode:
authorRuiyu Ni <ruiyu.ni@intel.com>2016-07-11 13:56:49 +0800
committerRuiyu Ni <ruiyu.ni@intel.com>2016-07-18 10:55:02 +0800
commitffbc60a02757fe430448d7ad022d04cec133ba5d (patch)
tree56834a829147340e06f892fa7549dccf7b11e455 /ShellPkg/Application/Shell/ShellEnvVar.h
parent31e5b912b99e0fb39e81f70bc24a4be589191abb (diff)
downloadedk2-platforms-ffbc60a02757fe430448d7ad022d04cec133ba5d.tar.xz
ShellPkg/ShellAddEnvVarToList: 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.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/ShellPkg/Application/Shell/ShellEnvVar.h b/ShellPkg/Application/Shell/ShellEnvVar.h
index 5356580759..f05ef2bd66 100644
--- a/ShellPkg/Application/Shell/ShellEnvVar.h
+++ b/ShellPkg/Application/Shell/ShellEnvVar.h
@@ -240,11 +240,14 @@ ShellFindEnvVarInList (
@param Key The name of the environment variable.
@param Value The value of environment variable.
@param ValueSize The size in bytes of the environment variable
- including the tailing CHAR_NELL
+ including the tailing CHAR_NULL
@param Atts The attributes of the variable.
+ @retval EFI_SUCCESS The environment variable was added to list successfully.
+ @retval others Some errors happened.
+
**/
-VOID
+EFI_STATUS
ShellAddEnvVarToList (
IN CONST CHAR16 *Key,
IN CONST CHAR16 *Value,