ole32/tests: Test for correct storage creation.

Dmitry Timoshkov dmitry at codeweavers.com
Sat Mar 26 00:34:20 CDT 2011


Roman Dadkov <romand at etersoft.ru> wrote:

> +    IStorage_Commit(stg, STGC_DEFAULT);
> +    IStorage_Release(stg);
> +    GetHGlobalFromILockBytes(ilb, &hMem);

It would be helpful to test the results of the above calls too.

> +    todo_wine
> +    ok(!memcmp((BYTE*)hMem, StandardMagic, 8), "Incorrect storage creation\n");
> +    todo_wine
> +    ok(!memcmp(((BYTE*)hMem+8), NullableField, 16), "Incorrect storage creation. Field is not reset\n");
> +    todo_wine
> +    ok(!memcmp(((BYTE*)hMem+34), NullableField, 10), "Incorrect storage creation. Field is not reset\n");

What is this supposed to show?

-- 
Dmitry.



More information about the wine-devel mailing list