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:
parent
b809070476
commit
1e81d55190
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue