From b5812e00130e85088fe6d548cef97f17603a44b2 Mon Sep 17 00:00:00 2001 From: James Hawkins Date: Tue, 2 Sep 2008 22:57:13 -0500 Subject: [PATCH] ntdll: Fix a failing test in NT4. --- dlls/ntdll/tests/rtlstr.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/dlls/ntdll/tests/rtlstr.c b/dlls/ntdll/tests/rtlstr.c index f4304c8a030..f4442730221 100644 --- a/dlls/ntdll/tests/rtlstr.c +++ b/dlls/ntdll/tests/rtlstr.c @@ -1696,12 +1696,17 @@ static void test_RtlIsTextUnicode(void) WCHAR mixed_controls[] = {'\t',0x9000,0x0d00,'\n',0}; WCHAR *be_unicode; WCHAR *be_unicode_no_controls; + BOOLEAN res; int flags; int i; ok(!pRtlIsTextUnicode(ascii, sizeof(ascii), NULL), "ASCII text detected as Unicode\n"); - ok(pRtlIsTextUnicode(unicode, sizeof(unicode), NULL), "Text should be Unicode\n"); + res = pRtlIsTextUnicode(unicode, sizeof(unicode), NULL); + ok(res || + broken(res == FALSE), /* NT4 */ + "Text should be Unicode\n"); + ok(!pRtlIsTextUnicode(unicode, sizeof(unicode) - 1, NULL), "Text should be Unicode\n"); flags = IS_TEXT_UNICODE_UNICODE_MASK;