Nikolay Sivov : mfplat: Output warning for unexpected result object passed for periodic callback (Coverity).

Alexandre Julliard julliard at winehq.org
Mon Apr 8 15:11:59 CDT 2019


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

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Sat Apr  6 22:02:40 2019 +0300

mfplat: Output warning for unexpected result object passed for periodic callback (Coverity).

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

---

 dlls/mfplat/queue.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/dlls/mfplat/queue.c b/dlls/mfplat/queue.c
index c2cc623..36c5056 100644
--- a/dlls/mfplat/queue.c
+++ b/dlls/mfplat/queue.c
@@ -1066,7 +1066,8 @@ static HRESULT WINAPI periodic_callback_Invoke(IMFAsyncCallback *iface, IMFAsync
     struct periodic_callback *callback = impl_from_IMFAsyncCallback(iface);
     IUnknown *context = NULL;
 
-    IMFAsyncResult_GetObject(result, &context);
+    if (FAILED(IMFAsyncResult_GetObject(result, &context)))
+        WARN("Expected object to be set for result object.\n");
 
     callback->callback(context);
 




More information about the wine-cvs mailing list