amstream: Don't crash on NULL ddraw in IDirectDrawMediaStream::GetDirectDraw().

Signed-off-by: Gijs Vermeulen <gijsvrm@gmail.com>
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Gijs Vermeulen 2020-06-19 16:10:30 +02:00 committed by Alexandre Julliard
parent b809070476
commit 1e81d55190
1 changed files with 3 additions and 0 deletions

View File

@ -377,6 +377,9 @@ static HRESULT WINAPI ddraw_IDirectDrawMediaStream_GetDirectDraw(IDirectDrawMedi
TRACE("(%p)->(%p)\n", iface, ddraw);
if (!ddraw)
return E_POINTER;
*ddraw = NULL;
if (!This->ddraw)
{