ddraw: Explicitly check for the IDirectDrawColorControl interface in ddraw_surface7_QueryInterface().

This commit is contained in:
Henri Verbeet 2012-04-01 13:12:01 +02:00 committed by Alexandre Julliard
parent a84f7204af
commit 8481625fa4
1 changed files with 7 additions and 0 deletions

View File

@ -191,6 +191,13 @@ static HRESULT WINAPI ddraw_surface7_QueryInterface(IDirectDrawSurface7 *iface,
return S_OK;
}
if (IsEqualGUID(riid, &IID_IDirectDrawColorControl))
{
WARN("Color control not implemented.\n");
*obj = NULL;
return E_NOINTERFACE;
}
if (IsEqualGUID(riid, &IID_D3DDEVICE_WineD3D)
|| IsEqualGUID(riid, &IID_IDirect3DHALDevice)
|| IsEqualGUID(riid, &IID_IDirect3DRGBDevice))