diff options
Diffstat (limited to 'MdeModulePkg/Library/GenericBdsLib/BdsConsole.c')
-rw-r--r-- | MdeModulePkg/Library/GenericBdsLib/BdsConsole.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/MdeModulePkg/Library/GenericBdsLib/BdsConsole.c b/MdeModulePkg/Library/GenericBdsLib/BdsConsole.c index bd55156169..9f77553ec2 100644 --- a/MdeModulePkg/Library/GenericBdsLib/BdsConsole.c +++ b/MdeModulePkg/Library/GenericBdsLib/BdsConsole.c @@ -14,6 +14,15 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. #include "InternalBdsLib.h"
+/**
+ Check if we need to save the EFI variable with "ConVarName" as name
+ as NV type
+
+ @param ConVarName The name of the EFI variable.
+
+ @retval TRUE Set the EFI variabel as NV type.
+ @retval FALSE EFI variabel as NV type can be set NonNV.
+**/
BOOLEAN
IsNvNeed (
IN CHAR16 *ConVarName
@@ -27,7 +36,7 @@ IsNvNeed ( // If the variable includes "Dev" at last, we consider
// it does not support NV attribute.
//
- while (*Ptr) {
+ while (*Ptr != L'\0') {
Ptr++;
}
|