Fix IntIsValidSBCSMapping(). Bug #3903.
authorDmitry Gorbachev <gorbachev@reactos.org>
Tue, 9 Dec 2008 16:13:51 +0000 (16:13 +0000)
committerDmitry Gorbachev <gorbachev@reactos.org>
Tue, 9 Dec 2008 16:13:51 +0000 (16:13 +0000)
svn path=/trunk/; revision=37970

reactos/dll/win32/kernel32/misc/nls.c

index 43fd8b5..4d77e72 100644 (file)
@@ -740,7 +740,7 @@ IntIsValidSBCSMapping(PCPTABLEINFO CodePageTable, DWORD Flags, WCHAR wch, UCHAR
 {
     /* If the WC_NO_BEST_FIT_CHARS flag has been specified, the characters need to match exactly. */
     if (Flags & WC_NO_BEST_FIT_CHARS)
-        return (CodePageTable->MultiByteTable[ch] != wch);
+        return (CodePageTable->MultiByteTable[ch] == wch);
 
     /* By default, all characters except TransDefaultChar apply as a valid mapping
        for ch (so also "nearest" characters) */