Fix IntIsValidSBCSMapping(). Bug #3903.

svn path=/trunk/; revision=37970
This commit is contained in:
Dmitry Gorbachev 2008-12-09 16:13:51 +00:00
parent 14572bf220
commit 69096be449

View 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) */