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:
Michael Stefaniuc 2016-07-01 10:22:57 +02:00 committed by Alexandre Julliard
parent 4046616efd
commit 36a1bc1f04
1 changed files with 1 additions and 1 deletions

View File

@ -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();