[PATCH 2/5] mfplat: Output warning for unexpected result object passed for periodic callback (Coverity).

Nikolay Sivov nsivov at codeweavers.com
Sat Apr 6 14:02:40 CDT 2019


Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
---
 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 c2cc6233b5..36c50566d3 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);
 
-- 
2.20.1




More information about the wine-devel mailing list