Francois Gouget : mfplat/tests: Fix an event queue refcounting test on Vista.
Alexandre Julliard
julliard at winehq.org
Fri Apr 23 15:20:17 CDT 2021
Module: wine
Branch: master
Commit: 730b30aacfc170850acd8f4acb8d9d552f10cf7d
URL: https://source.winehq.org/git/wine.git/?a=commit;h=730b30aacfc170850acd8f4acb8d9d552f10cf7d
Author: Francois Gouget <fgouget at 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 at codeweavers.com>
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at 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);
More information about the wine-cvs
mailing list