Commit fb0a9291 authored by Detlef Riekenberg's avatar Detlef Riekenberg Committed by Alexandre Julliard

ddraw: Do not crash when Clipper is NULL.

parent 0d1de51a
......@@ -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);
}
/*****************************************************************************
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment