mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-15 05:57:27 +00:00
d2d1/tests: Test unregistering effect which has existing instance.
Signed-off-by: Ziqing Hui <zhui@codeweavers.com> Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
5cb2c805b1
commit
3eaac7211f
|
@ -10673,10 +10673,15 @@ static void test_effect_register(BOOL d3d11)
|
|||
ok(hr == test->hr, "Got unexpected hr %#lx, expected %#lx.\n", hr, test->hr);
|
||||
if (hr == S_OK)
|
||||
{
|
||||
effect = NULL;
|
||||
hr = ID2D1DeviceContext_CreateEffect(device_context, &CLSID_TestEffect, &effect);
|
||||
todo_wine ok(hr == S_OK, "Got unexpected hr %#lx.\n", hr);
|
||||
hr = ID2D1Factory1_UnregisterEffect(factory, &CLSID_TestEffect);
|
||||
todo_wine ok(hr == S_OK, "Got unexpected hr %#lx.\n", hr);
|
||||
hr = ID2D1Factory1_UnregisterEffect(factory, &CLSID_TestEffect);
|
||||
todo_wine ok(hr == D2DERR_EFFECT_IS_NOT_REGISTERED, "Got unexpected hr %#lx.\n", hr);
|
||||
if (effect)
|
||||
ID2D1Effect_Release(effect);
|
||||
}
|
||||
|
||||
winetest_pop_context();
|
||||
|
|
Loading…
Reference in a new issue