summaryrefslogtreecommitdiffstats
path: root/IntelFrameworkPkg/Library/FrameworkUefiLib
diff options
context:
space:
mode:
authorLiming Gao <liming.gao@intel.com>2018-05-28 15:30:51 +0800
committerLiming Gao <liming.gao@intel.com>2018-06-12 09:23:12 +0800
commit2e3daaf68890a1ef31c24eaa5658202621bfd907 (patch)
tree381f73ec8628d8030107d529db48feddb67653e7 /IntelFrameworkPkg/Library/FrameworkUefiLib
parent3d7c6cfbab977e5c6f3e8dbcd9c7c0b72f7add8d (diff)
downloadedk2-2e3daaf68890a1ef31c24eaa5658202621bfd907.tar.gz
edk2-2e3daaf68890a1ef31c24eaa5658202621bfd907.tar.bz2
edk2-2e3daaf68890a1ef31c24eaa5658202621bfd907.zip
IntelFrameworkPkg UefiLib: Use comparison logic to check UINTN parameter
Commit cb96e7d4f7afdbaef0706f9251ae479639d85a28 changes the input parameter from BOOLEAN to UINTN. Its comparison logic should be updated. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Liming Gao <liming.gao@intel.com> Reviewed-by: Star Zeng <star.zeng@intel.com>
Diffstat (limited to 'IntelFrameworkPkg/Library/FrameworkUefiLib')
-rw-r--r--IntelFrameworkPkg/Library/FrameworkUefiLib/UefiLib.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/IntelFrameworkPkg/Library/FrameworkUefiLib/UefiLib.c b/IntelFrameworkPkg/Library/FrameworkUefiLib/UefiLib.c
index 3eeb12110a..a32b524ff8 100644
--- a/IntelFrameworkPkg/Library/FrameworkUefiLib/UefiLib.c
+++ b/IntelFrameworkPkg/Library/FrameworkUefiLib/UefiLib.c
@@ -1457,8 +1457,8 @@ GetEfiGlobalVariable2 (
@param[in] SupportedLanguages A pointer to a Null-terminated ASCII string that
contains a set of language codes in the format
specified by Iso639Language.
- @param[in] Iso639Language If TRUE, then all language codes are assumed to be
- in ISO 639-2 format. If FALSE, then all language
+ @param[in] Iso639Language If not zero, then all language codes are assumed to be
+ in ISO 639-2 format. If zero, then all language
codes are assumed to be in RFC 4646 language format
@param[in] ... A variable argument list that contains pointers to
Null-terminated ASCII strings that contain one or more
@@ -1510,7 +1510,7 @@ GetBestLanguage (
//
// If in RFC 4646 mode, then determine the length of the first RFC 4646 language code in Language
//
- if (!Iso639Language) {
+ if (Iso639Language == 0) {
for (LanguageLength = 0; Language[LanguageLength] != 0 && Language[LanguageLength] != ';'; LanguageLength++);
}
@@ -1525,7 +1525,7 @@ GetBestLanguage (
//
// In RFC 4646 mode, then Loop through all language codes in SupportedLanguages
//
- if (!Iso639Language) {
+ if (Iso639Language == 0) {
//
// Skip ';' characters in Supported
//
@@ -1557,7 +1557,7 @@ GetBestLanguage (
}
}
- if (Iso639Language) {
+ if (Iso639Language != 0) {
//
// If ISO 639 mode, then each language can only be tested once
//