Author: tfaber
Date: Sun Oct 2 08:34:30 2016
New Revision: 72887
URL:
http://svn.reactos.org/svn/reactos?rev=72887&view=rev
Log:
[RTL]
- Only check for MBCS lead bytes in RtlIsTextUnicode if specifically requested
CORE-12027 #resolve for real this time
Modified:
trunk/reactos/sdk/lib/rtl/unicode.c
Modified: trunk/reactos/sdk/lib/rtl/unicode.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/sdk/lib/rtl/unicode.c?rev=…
==============================================================================
--- trunk/reactos/sdk/lib/rtl/unicode.c [iso-8859-1] (original)
+++ trunk/reactos/sdk/lib/rtl/unicode.c [iso-8859-1] Sun Oct 2 08:34:30 2016
@@ -1367,7 +1367,7 @@
else
weight = 1;
- if (flags & IS_TEXT_UNICODE_DBCS_LEADBYTE)
+ if (pf && (*pf & IS_TEXT_UNICODE_DBCS_LEADBYTE))
out_flags |= IS_TEXT_UNICODE_DBCS_LEADBYTE;
}
}