Michael Stefaniuc : mfplat/tests: Avoid cast from COM object to interface.

Alexandre Julliard julliard at winehq.org
Thu Aug 26 15:22:30 CDT 2021


Module: wine
Branch: master
Commit: 2a0836699754b7bb5ab8a210ed2692f6c2f263d5
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=2a0836699754b7bb5ab8a210ed2692f6c2f263d5

Author: Michael Stefaniuc <mstefani at winehq.org>
Date:   Thu Aug 26 09:45:26 2021 +0200

mfplat/tests: Avoid cast from COM object to interface.

Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/mfplat/tests/mfplat.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/mfplat/tests/mfplat.c b/dlls/mfplat/tests/mfplat.c
index 3e0907e41ad..54af1ee151d 100644
--- a/dlls/mfplat/tests/mfplat.c
+++ b/dlls/mfplat/tests/mfplat.c
@@ -3129,7 +3129,7 @@ static void test_event_queue(void)
     ok(hr == MF_S_MULTIPLE_BEGIN, "Unexpected hr %#x.\n", hr);
 
     /* Same callback, different state. */
-    hr = IMFMediaEventQueue_BeginGetEvent(queue, &callback.IMFAsyncCallback_iface, (IUnknown *)&callback);
+    hr = IMFMediaEventQueue_BeginGetEvent(queue, &callback.IMFAsyncCallback_iface, (IUnknown *)&callback.IMFAsyncCallback_iface);
     ok(hr == MF_E_MULTIPLE_BEGIN, "Unexpected hr %#x.\n", hr);
 
     /* Different callback, same state. */




More information about the wine-cvs mailing list