mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-01 09:50:52 +00:00
ntdll: Fixed the null bytes check in RtlIsTextUnicode.
This commit is contained in:
parent
db72af98b5
commit
43519e415d
1 changed files with 1 additions and 1 deletions
|
@ -1636,7 +1636,7 @@ BOOLEAN WINAPI RtlIsTextUnicode( LPCVOID buf, INT len, INT *pf )
|
|||
{
|
||||
for (i = 0; i < len; i++)
|
||||
{
|
||||
if (!s[i])
|
||||
if (!(s[i] & 0xff) || !(s[i] >> 8))
|
||||
{
|
||||
out_flags |= IS_TEXT_UNICODE_NULL_BYTES;
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue