Author: dgorbachev
Date: Tue Dec 9 10:13:51 2008
New Revision: 37970
URL:
http://svn.reactos.org/svn/reactos?rev=37970&view=rev
Log:
Fix IntIsValidSBCSMapping(). Bug #3903.
Modified:
trunk/reactos/dll/win32/kernel32/misc/nls.c
Modified: trunk/reactos/dll/win32/kernel32/misc/nls.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/misc/nl…
==============================================================================
--- trunk/reactos/dll/win32/kernel32/misc/nls.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/kernel32/misc/nls.c [iso-8859-1] Tue Dec 9 10:13:51 2008
@@ -740,7 +740,7 @@
{
/* 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) */