]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ShellPkg: Error out when ProcessCommandLine fails
authorBrendan Jackman <Brendan.Jackman@arm.com>
Tue, 11 Feb 2014 22:43:36 +0000 (22:43 +0000)
committerjcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 11 Feb 2014 22:43:36 +0000 (22:43 +0000)
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Brendan Jackman <Brendan.Jackman@arm.com>
Reviewed-by: Olivier Martin <olivier.martin@arm.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15222 6f19259b-4bc3-4df7-8a09-765794883524

ShellPkg/Application/Shell/Shell.c

index df101a32af0157e16eeac13a085e67e62397796b..72d7516b28fc56e4f90a8bc36415aab9b2ceed3c 100644 (file)
@@ -359,7 +359,10 @@ UefiMain (
     //\r
     // Check the command line\r
     //\r
-    Status = ProcessCommandLine();\r
+    Status = ProcessCommandLine ();\r
+    if (EFI_ERROR (Status)) {\r
+      goto FreeResources;\r
+    }\r
 \r
     //\r
     // If shell support level is >= 1 create the mappings and paths\r