mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-01 18:03:37 +00:00
quartz/tests: Unregister filters only when registered successfully.
This commit is contained in:
parent
a95651a5dc
commit
c6de8ad981
|
@ -1847,17 +1847,17 @@ static void test_render_filter_priority(void)
|
|||
get_connected_filter_name(ptestfilter, ConnectedFilterName1);
|
||||
ok(!strcmp(ConnectedFilterName1, "TestfilterInstance3"),
|
||||
"unexpected connected filter: %s\n", ConnectedFilterName1);
|
||||
}
|
||||
|
||||
hr = IFilterMapper2_UnregisterFilter(pMapper2, &CLSID_LegacyAmFilterCategory, NULL,
|
||||
&CLSID_TestFilter2);
|
||||
ok(SUCCEEDED(hr), "IFilterMapper2_UnregisterFilter failed with %x\n", hr);
|
||||
hr = IFilterMapper2_UnregisterFilter(pMapper2, &CLSID_LegacyAmFilterCategory, NULL,
|
||||
&CLSID_TestFilter3);
|
||||
ok(SUCCEEDED(hr), "IFilterMapper2_UnregisterFilter failed with %x\n", hr);
|
||||
hr = IFilterMapper2_UnregisterFilter(pMapper2, &CLSID_LegacyAmFilterCategory, NULL,
|
||||
&CLSID_TestFilter4);
|
||||
ok(SUCCEEDED(hr), "IFilterMapper2_UnregisterFilter failed with %x\n", hr);
|
||||
hr = IFilterMapper2_UnregisterFilter(pMapper2, &CLSID_LegacyAmFilterCategory, NULL,
|
||||
&CLSID_TestFilter2);
|
||||
ok(hr == S_OK, "IFilterMapper2_UnregisterFilter failed with %x\n", hr);
|
||||
hr = IFilterMapper2_UnregisterFilter(pMapper2, &CLSID_LegacyAmFilterCategory, NULL,
|
||||
&CLSID_TestFilter3);
|
||||
ok(hr == S_OK, "IFilterMapper2_UnregisterFilter failed with %x\n", hr);
|
||||
hr = IFilterMapper2_UnregisterFilter(pMapper2, &CLSID_LegacyAmFilterCategory, NULL,
|
||||
&CLSID_TestFilter4);
|
||||
ok(hr == S_OK, "IFilterMapper2_UnregisterFilter failed with %x\n", hr);
|
||||
}
|
||||
|
||||
out:
|
||||
|
||||
|
|
Loading…
Reference in a new issue