NT4 fix for dlls/shell32/tests/string.c

Jakob Eriksson jakov at vmlinux.org
Tue Mar 22 10:13:18 CST 2005


http://test.winehq.org/data/200503181000/nt4/shell32:string.txt

NT4 returns ok, though it should return FALSE.


-------------- next part --------------
Index: dlls/shell32/tests/string.c
===================================================================
RCS file: /home/wine/wine/dlls/shell32/tests/string.c,v
retrieving revision 1.1
diff -u -r1.1 string.c
--- dlls/shell32/tests/string.c	10 Feb 2004 02:19:03 -0000	1.1
+++ dlls/shell32/tests/string.c	22 Mar 2005 16:12:21 -0000
@@ -88,12 +88,11 @@
     ok(ret == TRUE && !strcmpW(buff, szTestW),
        "STRRET_OFFSET: dup failed, ret=%d\n", ret);
 
-    /* Invalid dest - returns FALSE */
+    /* Invalid dest - should return FALSE, except NT4 does not, so we don't check. */
     strret.uType = STRRET_WSTR;
     strret.u.pOleStr = CoDupStrW("Test");
-    ret = pStrRetToStrNAW(NULL, sizeof(buff)/sizeof(WCHAR), &strret, NULL);
-    ok(ret == FALSE, "NULL dest: expected FALSE, ret=%d\n", ret);
-
+    pStrRetToStrNAW(NULL, sizeof(buff)/sizeof(WCHAR), &strret, NULL);
+    trace("NULL dest: ret=%d\n", ret);
 }
 
 START_TEST(string)


More information about the wine-patches mailing list