Commit 36a1bc1f authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

ddraw: Get rid of a cast from a COM object to an iface.

parent 4046616e
......@@ -4289,7 +4289,7 @@ static HRESULT WINAPI ddraw_surface7_GetClipper(IDirectDrawSurface7 *iface, IDir
return DDERR_NOCLIPPERATTACHED;
}
*Clipper = (IDirectDrawClipper *)surface->clipper;
*Clipper = &surface->clipper->IDirectDrawClipper_iface;
IDirectDrawClipper_AddRef(*Clipper);
wined3d_mutex_unlock();
......
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