ntdll: Fix a failing test in NT4.

This commit is contained in:
James Hawkins 2008-09-02 22:57:13 -05:00 committed by Alexandre Julliard
parent fc3019ac99
commit b5812e0013
1 changed files with 6 additions and 1 deletions

View File

@ -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;