Skip to content
Snippets Groups Projects
Commit fb0a9291 authored by Detlef Riekenberg's avatar Detlef Riekenberg Committed by Alexandre Julliard
Browse files

ddraw: Do not crash when Clipper is NULL.

parent 0d1de51a
No related branches found
No related tags found
No related merge requests found
......@@ -1981,7 +1981,7 @@ IDirectDrawSurfaceImpl_SetClipper(IDirectDrawSurface7 *iface,
if(oldClipper)
IDirectDrawClipper_Release(ICOM_INTERFACE(oldClipper, IDirectDrawClipper));
return IWineD3DSurface_SetClipper(This->WineD3DSurface, This->clipper->wineD3DClipper);
return IWineD3DSurface_SetClipper(This->WineD3DSurface, This->clipper ? This->clipper->wineD3DClipper : NULL);
}
/*****************************************************************************
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment