James Hawkins : ntdll: Fix a failing test in NT4.

Alexandre Julliard julliard at winehq.org
Wed Sep 3 07:43:58 CDT 2008


Module: wine
Branch: master
Commit: b5812e00130e85088fe6d548cef97f17603a44b2
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=b5812e00130e85088fe6d548cef97f17603a44b2

Author: James Hawkins <jhawkins at codeweavers.com>
Date:   Tue Sep  2 22:57:13 2008 -0500

ntdll: Fix a failing test in NT4.

---

 dlls/ntdll/tests/rtlstr.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/dlls/ntdll/tests/rtlstr.c b/dlls/ntdll/tests/rtlstr.c
index f4304c8..f444273 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;




More information about the wine-cvs mailing list