]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Library/VarCheckLib/VarCheckLib.c
MdeModulePkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / MdeModulePkg / Library / VarCheckLib / VarCheckLib.c
index 60c141a6b93583eef173c4fdf057929cb0416d49..470d782444bf067d3cb8c6769be849e5b5260a6e 100644 (file)
@@ -1,14 +1,8 @@
 /** @file\r
   Implementation functions and structures for var check services.\r
 \r
-Copyright (c) 2015, 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
-http://opensource.org/licenses/bsd-license.php\r
-\r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+Copyright (c) 2015 - 2016, Intel Corporation. All rights reserved.<BR>\r
+SPDX-License-Identifier: BSD-2-Clause-Patent\r
 \r
 **/\r
 \r
@@ -79,6 +73,13 @@ VARIABLE_ENTRY_PROPERTY mVarCheckVariableWithWildcardName[] = {
       0\r
     },\r
   },\r
+  {\r
+    &gEfiGlobalVariableGuid,\r
+    L"PlatformRecovery####",\r
+    {\r
+      0\r
+    },\r
+  },\r
   {\r
     &gEfiHardwareErrorVariableGuid,\r
     L"HwErrRec####",\r
@@ -89,17 +90,17 @@ VARIABLE_ENTRY_PROPERTY mVarCheckVariableWithWildcardName[] = {
 };\r
 \r
 /**\r
-  Check if a Unicode character is a hexadecimal character.\r
+  Check if a Unicode character is an upper case hexadecimal character.\r
 \r
-  This function checks if a Unicode character is a\r
-  hexadecimal character.  The valid hexadecimal character is\r
-  L'0' to L'9', L'a' to L'f', or L'A' to L'F'.\r
+  This function checks if a Unicode character is an upper case\r
+  hexadecimal character.  The valid upper case hexadecimal character is\r
+  L'0' to L'9', or L'A' to L'F'.\r
 \r
 \r
   @param[in] Char       The character to check against.\r
 \r
-  @retval TRUE          If the Char is a hexadecmial character.\r
-  @retval FALSE         If the Char is not a hexadecmial character.\r
+  @retval TRUE          If the Char is an upper case hexadecmial character.\r
+  @retval FALSE         If the Char is not an upper case hexadecmial character.\r
 \r
 **/\r
 BOOLEAN\r
@@ -108,7 +109,7 @@ VarCheckInternalIsHexaDecimalDigitCharacter (
   IN CHAR16             Char\r
   )\r
 {\r
-  return (BOOLEAN) ((Char >= L'0' && Char <= L'9') || (Char >= L'A' && Char <= L'F') || (Char >= L'a' && Char <= L'f'));\r
+  return (BOOLEAN) ((Char >= L'0' && Char <= L'9') || (Char >= L'A' && Char <= L'F'));\r
 }\r
 \r
 /**\r