diff options
Diffstat (limited to 'MdePkg/Library')
-rw-r--r-- | MdePkg/Library/BaseLib/String.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/MdePkg/Library/BaseLib/String.c b/MdePkg/Library/BaseLib/String.c index 86828e65fc..6ef2c3b2d3 100644 --- a/MdePkg/Library/BaseLib/String.c +++ b/MdePkg/Library/BaseLib/String.c @@ -277,7 +277,7 @@ StrnCmp ( ASSERT (StrSize (SecondString) != 0);
while ((*FirstString != L'\0') &&
- (*FirstString != *SecondString) &&
+ (*FirstString == *SecondString) &&
(Length > 1)) {
FirstString++;
SecondString++;
@@ -696,7 +696,7 @@ AsciiStrnCmp ( ASSERT (AsciiStrSize (SecondString));
while ((*FirstString != '\0') &&
- (*FirstString != *SecondString) &&
+ (*FirstString == *SecondString) &&
(Length > 1)) {
FirstString++;
SecondString++;
|