\r
**/\r
\r
-#include <Uefi.h>\r
-#include <ShellBase.h>\r
-\r
-#include <Guid/ShellVariableGuid.h>\r
-\r
-#include <Library/BaseLib.h>\r
-#include <Library/UefiRuntimeServicesTableLib.h>\r
-#include <Library/MemoryAllocationLib.h>\r
-#include <Library/DebugLib.h>\r
-#include <Library/BaseMemoryLib.h>\r
-\r
-#include "ShellEnvVar.h"\r
+#include "Shell.h"\r
\r
/**\r
Reports whether an environment variable is Volatile or Non-Volatile.\r
}\r
\r
for ( Node = (ENV_VAR_LIST*)GetFirstNode(List)\r
- ; IsListEmpty(List)\r
+ ; !IsListEmpty(List)\r
; Node = (ENV_VAR_LIST*)GetFirstNode(List)\r
){\r
ASSERT(Node != NULL);\r
/**\r
Creates a list of all Shell-Guid-based environment variables.\r
\r
- @param[in,out] ListHead The pointer to pointer to LIST ENTRY object for\r
- storing this list.\r
+ @param[in, out] ListHead The pointer to pointer to LIST ENTRY object for\r
+ storing this list.\r
\r
@retval EFI_SUCCESS the list was created sucessfully.\r
**/\r
return (Status);\r
}\r
} else {\r
+ Status = EFI_SUCCESS;\r
MaxVarSize = 16384;\r
}\r
\r