Nikolay Sivov : mfplat: Use RTWQ* type in BeginGetEvent().

Alexandre Julliard julliard at winehq.org
Wed Apr 14 16:01:18 CDT 2021


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

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Wed Apr 14 09:49:08 2021 +0300

mfplat: Use RTWQ* type in BeginGetEvent().

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

---

 dlls/mfplat/main.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/dlls/mfplat/main.c b/dlls/mfplat/main.c
index 9078702c854..de2b5c6ee51 100644
--- a/dlls/mfplat/main.c
+++ b/dlls/mfplat/main.c
@@ -7109,7 +7109,7 @@ static void queue_notify_subscriber(struct event_queue *queue)
 static HRESULT WINAPI eventqueue_BeginGetEvent(IMFMediaEventQueue *iface, IMFAsyncCallback *callback, IUnknown *state)
 {
     struct event_queue *queue = impl_from_IMFMediaEventQueue(iface);
-    MFASYNCRESULT *result_data;
+    RTWQASYNCRESULT *result_data;
     HRESULT hr;
 
     TRACE("%p, %p, %p.\n", iface, callback, state);
@@ -7121,9 +7121,9 @@ static HRESULT WINAPI eventqueue_BeginGetEvent(IMFMediaEventQueue *iface, IMFAsy
 
     if (queue->is_shut_down)
         hr = MF_E_SHUTDOWN;
-    else if ((result_data = (MFASYNCRESULT *)queue->subscriber))
+    else if ((result_data = (RTWQASYNCRESULT *)queue->subscriber))
     {
-        if (result_data->pCallback == callback)
+        if (result_data->pCallback == (IRtwqAsyncCallback *)callback)
             hr = IRtwqAsyncResult_GetStateNoAddRef(queue->subscriber) == state ?
                     MF_S_MULTIPLE_BEGIN : MF_E_MULTIPLE_BEGIN;
         else




More information about the wine-cvs mailing list