mfplat/tests: Fix an event queue refcounting test on Vista.

Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Francois Gouget 2021-04-21 20:20:48 +02:00 committed by Alexandre Julliard
parent 771abe5a03
commit 730b30aacf
1 changed files with 3 additions and 1 deletions

View File

@ -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);