]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ShellPkg/Application/Shell/ShellEnvVar.h
ShellPkg/ShellAddEnvVarToList: Handle memory allocation failure
[mirror_edk2.git] / ShellPkg / Application / Shell / ShellEnvVar.h
index 5356580759a7adf24880a29d9f961b7300bde0e1..f05ef2bd66fff51974c648f2145ca4d48c872185 100644 (file)
@@ -240,11 +240,14 @@ ShellFindEnvVarInList (
   @param Key        The name of the environment variable.\r
   @param Value      The value of environment variable.\r
   @param ValueSize  The size in bytes of the environment variable\r
-                    including the tailing CHAR_NELL\r
+                    including the tailing CHAR_NULL\r
   @param Atts       The attributes of the variable.\r
 \r
+  @retval EFI_SUCCESS  The environment variable was added to list successfully.\r
+  @retval others       Some errors happened.\r
+\r
 **/\r
-VOID\r
+EFI_STATUS\r
 ShellAddEnvVarToList (\r
   IN CONST CHAR16     *Key,\r
   IN CONST CHAR16     *Value,\r