Ziqing Hui : d2d1/tests: Test unregistering effect which has existing instance.
Alexandre Julliard
julliard at winehq.org
Fri Jun 3 15:53:08 CDT 2022
Module: wine
Branch: master
Commit: 3eaac7211fdf985a9d443fce8555b9bac99a1327
URL: https://source.winehq.org/git/wine.git/?a=commit;h=3eaac7211fdf985a9d443fce8555b9bac99a1327
Author: Ziqing Hui <zhui at codeweavers.com>
Date: Thu Jun 2 18:17:04 2022 +0800
d2d1/tests: Test unregistering effect which has existing instance.
Signed-off-by: Ziqing Hui <zhui at codeweavers.com>
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/d2d1/tests/d2d1.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/dlls/d2d1/tests/d2d1.c b/dlls/d2d1/tests/d2d1.c
index 397e460cbb2..bc662b4f8ae 100644
--- a/dlls/d2d1/tests/d2d1.c
+++ b/dlls/d2d1/tests/d2d1.c
@@ -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();
More information about the wine-cvs
mailing list