Module: wine Branch: master Commit: 4140801e2d1342f85a01707aebd26112d9a132f3 URL: http://source.winehq.org/git/wine.git/?a=commit;h=4140801e2d1342f85a01707aeb...
Author: Reece Dunn msclrhd@googlemail.com Date: Sun Jul 20 11:23:17 2008 +0100
oleaut32: Fix the vartype tests on Vista.
---
dlls/oleaut32/tests/vartype.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/dlls/oleaut32/tests/vartype.c b/dlls/oleaut32/tests/vartype.c index 19e33bc..e2db519 100644 --- a/dlls/oleaut32/tests/vartype.c +++ b/dlls/oleaut32/tests/vartype.c @@ -5202,7 +5202,8 @@ static void test_SysReAllocString(void)
changed = SysReAllocString(&str, szSmaller); ok (changed == 1, "Expected 1, got %d\n", changed); - ok (str == oldstr, "Created new string\n"); + /* Vista creates a new string, but older versions reuse the existing string. */ + /*ok (str == oldstr, "Created new string\n");*/ bstr = Get(str); ok (bstr->dwLen == 2, "Expected 2, got %d\n", bstr->dwLen); ok (!lstrcmpW(bstr->szString, szSmaller), "String different\n"); @@ -5241,7 +5242,8 @@ static void test_SysReAllocStringLen(void)
changed = SysReAllocStringLen(&str, szSmaller, 1); ok (changed == 1, "Expected 1, got %d\n", changed); - ok (str == oldstr, "Created new string\n"); + /* Vista creates a new string, but older versions reuse the existing string. */ + /*ok (str == oldstr, "Created new string\n");*/ bstr = Get(str); ok (bstr->dwLen == 2, "Expected 2, got %d\n", bstr->dwLen); ok (!lstrcmpW(bstr->szString, szSmaller), "String different\n");