oleaut32/tests: Add broken behaviour on Win 2003.
This commit is contained in:
parent
e8d41475b9
commit
46bdb6e59a
|
@ -456,11 +456,15 @@ static void test_safearray(void)
|
|||
bound.lLbound = 0;
|
||||
SafeArrayRedim(a, &bound);
|
||||
SafeArrayPtrOfIndex(a, indices, (void **)&ptr1);
|
||||
ok(*(WORD *)ptr1 == 0, "Expanded area not zero-initialized\n");
|
||||
ok(*(WORD *)ptr1 == 0 ||
|
||||
broken(*(WORD *)ptr1 != 0), /* Win 2003 */
|
||||
"Expanded area not zero-initialized\n");
|
||||
|
||||
indices[1] = 1;
|
||||
SafeArrayPtrOfIndex(a, indices, (void **)&ptr1);
|
||||
ok(*(WORD *)ptr1 == 0x55aa, "Data not preserved when resizing array\n");
|
||||
ok(*(WORD *)ptr1 == 0x55aa ||
|
||||
broken(*(WORD *)ptr1 != 0x55aa), /* Win 2003 */
|
||||
"Data not preserved when resizing array\n");
|
||||
|
||||
hres = SafeArrayDestroy(a);
|
||||
ok(hres == S_OK,"SAD failed with hres %x\n", hres);
|
||||
|
|
Loading…
Reference in New Issue