From 88924d6a41ca92799441060da7078354615ec3ee Mon Sep 17 00:00:00 2001 From: Nikolay Sivov Date: Sat, 6 Apr 2019 22:02:40 +0300 Subject: [PATCH] mfplat: Output warning for unexpected result object passed for periodic callback (Coverity). Signed-off-by: Nikolay Sivov Signed-off-by: Alexandre Julliard --- 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 c2cc6233b54..36c50566d3b 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);