mfplat: Output warning for unexpected result object passed for periodic callback (Coverity).
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
53f0a25e6d
commit
88924d6a41
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue