Author: tfaber
Date: Sun Sep 25 08:25:45 2016
New Revision: 72797
URL:
http://svn.reactos.org/svn/reactos?rev=72797&view=rev
Log:
[RTL]
- Avoid dereferencing a NULL pointer in RtlIsTextUnicode
CORE-12027 #resolve
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 Sep 25 08:25:45 2016
@@ -1367,7 +1367,7 @@
else
weight = 1;
- if (*pf && (*pf & IS_TEXT_UNICODE_DBCS_LEADBYTE))
+ if (flags & IS_TEXT_UNICODE_DBCS_LEADBYTE)
out_flags |= IS_TEXT_UNICODE_DBCS_LEADBYTE;
}
}