]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Library/GenericBdsLib/BdsConsole.c
Clean up GenericBdsLib library Instance.
[mirror_edk2.git] / MdeModulePkg / Library / GenericBdsLib / BdsConsole.c
index bd551561694cf5a3f00c2ce81307eb4141e301fe..9f77553ec2e2dbb2a67da7bbaa9f11e11eee9524 100644 (file)
@@ -14,6 +14,15 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 \r
 #include "InternalBdsLib.h"\r
 \r
+/**\r
+  Check if we need to save the EFI variable with "ConVarName" as name\r
+  as NV type\r
+\r
+  @param ConVarName The name of the EFI variable.\r
+\r
+  @retval TRUE    Set the EFI variabel as NV type.\r
+  @retval FALSE   EFI variabel as NV type can be set NonNV.\r
+**/\r
 BOOLEAN\r
 IsNvNeed (\r
   IN CHAR16 *ConVarName\r
@@ -27,7 +36,7 @@ IsNvNeed (
   // If the variable includes "Dev" at last, we consider\r
   // it does not support NV attribute.\r
   //\r
-  while (*Ptr) {\r
+  while (*Ptr != L'\0') {\r
     Ptr++;\r
   }\r
 \r