From 43519e415d8712850e51672a189d8a687b5e6c05 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Mon, 30 Jul 2007 20:17:24 +0200 Subject: [PATCH] ntdll: Fixed the null bytes check in RtlIsTextUnicode. --- dlls/ntdll/rtlstr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/ntdll/rtlstr.c b/dlls/ntdll/rtlstr.c index 2a5422333b0..1b13f127156 100644 --- a/dlls/ntdll/rtlstr.c +++ b/dlls/ntdll/rtlstr.c @@ -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;