Francois Gouget : mfplat/tests: Fix an event queue refcounting test on Vista.
Module: wine Branch: master Commit: 730b30aacfc170850acd8f4acb8d9d552f10cf7d URL: https://source.winehq.org/git/wine.git/?a=commit;h=730b30aacfc170850acd8f4ac... Author: Francois Gouget <fgouget(a)codeweavers.com> Date: Wed Apr 21 20:20:48 2021 +0200 mfplat/tests: Fix an event queue refcounting test on Vista. Signed-off-by: Francois Gouget <fgouget(a)codeweavers.com> Signed-off-by: Nikolay Sivov <nsivov(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/mfplat/tests/mfplat.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dlls/mfplat/tests/mfplat.c b/dlls/mfplat/tests/mfplat.c index b6468b5da9b..89547be0a4f 100644 --- a/dlls/mfplat/tests/mfplat.c +++ b/dlls/mfplat/tests/mfplat.c @@ -3129,7 +3129,9 @@ static void test_event_queue(void) EXPECT_REF(&callback.IMFAsyncCallback_iface, 2); IMFMediaEventQueue_Release(queue); - EXPECT_REF(&callback.IMFAsyncCallback_iface, 1); + ret = get_refcount(&callback.IMFAsyncCallback_iface); + ok(ret == 1 || broken(ret == 2) /* Vista */, + "Unexpected refcount %d, expected 1.\n", ret); hr = MFShutdown(); ok(hr == S_OK, "Failed to shut down, hr %#x.\n", hr);
participants (1)
-
Alexandre Julliard