Commit 43519e41 authored by Alexandre Julliard's avatar Alexandre Julliard

ntdll: Fixed the null bytes check in RtlIsTextUnicode.

parent db72af98
...@@ -1636,7 +1636,7 @@ BOOLEAN WINAPI RtlIsTextUnicode( LPCVOID buf, INT len, INT *pf ) ...@@ -1636,7 +1636,7 @@ BOOLEAN WINAPI RtlIsTextUnicode( LPCVOID buf, INT len, INT *pf )
{ {
for (i = 0; i < len; i++) for (i = 0; i < len; i++)
{ {
if (!s[i]) if (!(s[i] & 0xff) || !(s[i] >> 8))
{ {
out_flags |= IS_TEXT_UNICODE_NULL_BYTES; out_flags |= IS_TEXT_UNICODE_NULL_BYTES;
break; break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment