summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQing Huang <qing.huang@intel.com>2008-05-05 07:06:57 +0000
committerJordan Justen <jordan.l.justen@intel.com>2016-04-06 23:22:43 -0700
commit8288dd3ef894b6a080cf3b61d02e9a27f01af742 (patch)
tree1cf014a4aaec03a670165b21b7d65b9fd7eff0ac
parentc22c8322e9bd7ee7fd0c616b9cf300c4d205ef76 (diff)
downloadedk2-8288dd3ef894b6a080cf3b61d02e9a27f01af742.zip
edk2-8288dd3ef894b6a080cf3b61d02e9a27f01af742.tar.gz
edk2-8288dd3ef894b6a080cf3b61d02e9a27f01af742.tar.bz2
Fix a typo when checking the 16-bit alignment of Unicode String.
(based on FatPkg commit 603a10ca818a089b8af594e0f1ef7e1a3e42d938) [jordan.l.justen@intel.com: Use script to relicense to 2-clause BSD] Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> Acked-by: Mark Doran <mark.doran@intel.com> Acked-by: Laszlo Ersek <lersek@redhat.com>
-rw-r--r--FatPkg/EnhancedFatDxe/UnicodeCollation.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/FatPkg/EnhancedFatDxe/UnicodeCollation.c b/FatPkg/EnhancedFatDxe/UnicodeCollation.c
index 67f1b7c..4a849af 100644
--- a/FatPkg/EnhancedFatDxe/UnicodeCollation.c
+++ b/FatPkg/EnhancedFatDxe/UnicodeCollation.c
@@ -275,7 +275,7 @@ FatFatToStr (
{
ASSERT (Fat != NULL);
ASSERT (String != NULL);
- ASSERT (((UINTN) String & 0x01) != 0);
+ ASSERT (((UINTN) String & 0x01) == 0);
ASSERT (mUnicodeCollationInterface != NULL);
mUnicodeCollationInterface->FatToStr (mUnicodeCollationInterface, FatSize, Fat, String);