ole32/tests: Fix a test failure on newer Windows versions.

This commit is contained in:
Alexandre Julliard 2012-10-12 11:54:03 +02:00
parent be2b45ce0a
commit cba98a2d8e
1 changed files with 3 additions and 2 deletions

View File

@ -463,8 +463,9 @@ static void test_varianttoproperty(void)
0, FALSE, 0);
ok(propvalue == own_propvalue, "unexpected propvalue %p\n", propvalue);
ok(len == 0, "unexpected length %d\n", len);
ok(propvalue->dwType == 0xdeadbeef, "unexpected type %d\n", propvalue->dwType);
ok(len == 4 || broken(len == 0) /* before Vista */, "unexpected length %d\n", len);
if (len) ok(!memcmp(propvalue, serialized_empty, 4), "got wrong data\n");
else ok(propvalue->dwType == 0xdeadbeef, "unexpected type %d\n", propvalue->dwType);
propvar.vt = VT_NULL;
len = 20;