]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.c
ShellPkg/for: Fix potential null pointer deference
[mirror_edk2.git] / ShellPkg / Library / UefiShellDriver1CommandsLib / UefiShellDriver1CommandsLib.c
index 1673d568807b78067bd3d0566335d118bbb5362e..95cd9a0ca8e48ae76ae50962cef6165e543f9e8c 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Main file for NULL named library for level 1 shell command functions.\r
 \r
-  Copyright (c) 2010 - 2011, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2010 - 2014, Intel Corporation. All rights reserved.<BR>\r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
 \r
 STATIC CONST CHAR16 mFileName[] = L"Driver1Commands";\r
 EFI_HANDLE gShellDriver1HiiHandle = NULL;\r
-CONST EFI_GUID gShellDriver1HiiGuid = \\r
-  { \\r
-  0xaf0b742, 0x63ec, 0x45bd, {0x8d, 0xb6, 0x71, 0xad, 0x7f, 0x2f, 0xe8, 0xe8} \\r
-  };\r
+BOOLEAN    gInReconnect = FALSE;\r
 \r
 /**\r
   Function to return the name of the file containing help if HII will not be used.\r
@@ -55,7 +52,7 @@ UefiShellDriver1CommandsLibConstructor (
   // check our bit of the profiles mask\r
   //\r
   if ((PcdGet8(PcdShellProfileMask) & BIT0) == 0) {\r
-    return (EFI_UNSUPPORTED);\r
+    return (EFI_SUCCESS);\r
   }\r
 \r
   //\r