diff options
author | bxing <bxing@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-05-22 07:58:55 +0000 |
---|---|---|
committer | bxing <bxing@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-05-22 07:58:55 +0000 |
commit | 267f7f10ec2fc883288f041600015ffdd2336dae (patch) | |
tree | a55628610915c16f3b640055eae69d42af865208 /MdePkg/Library | |
parent | 33f1b485454dc24cfed856aaf1d694d67c1f4fb5 (diff) | |
download | edk2-platforms-267f7f10ec2fc883288f041600015ffdd2336dae.tar.xz |
Fixed tracker #40
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@227 6f19259b-4bc3-4df7-8a09-765794883524
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++;
|