PATCH: SysReAllocString borderline tst
Marcus Meissner
marcus at jet.franken.de
Tue Nov 1 07:15:33 CST 2005
Hi,
Found this test in my tree, succeeds for both wine and native.
reallocing a string to the same pointer.
Ciao, Marcus
Changelog:
SysReAllocString of same pointer returns TRUE.
Index: dlls/oleaut32/tests/vartype.c
===================================================================
RCS file: /home/wine/wine/dlls/oleaut32/tests/vartype.c,v
retrieving revision 1.33
diff -u -r1.33 vartype.c
--- dlls/oleaut32/tests/vartype.c 27 Oct 2005 12:09:40 -0000 1.33
+++ dlls/oleaut32/tests/vartype.c 1 Nov 2005 13:15:02 -0000
@@ -5105,6 +5105,9 @@
ok (bstr->dwLen == 12, "Expected 12, got %ld\n", bstr->dwLen);
ok (!lstrcmpW(bstr->szString, szLarger), "String different\n");
+ changed = SysReAllocStringLen(&str, str, 6);
+ ok (changed == 1, "Expected 1, got %d\n", changed);
+
SysFreeString(str);
}
}
More information about the wine-patches
mailing list