ddraw: Get rid of a cast from a COM object to an iface.
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
4046616efd
commit
36a1bc1f04
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue