ddraw: Surface versions before 7 return E_INVALIDARG on failure in QueryInterface().

This commit is contained in:
Henri Verbeet 2012-04-02 22:42:20 +02:00 committed by Alexandre Julliard
parent 75aa0b38f7
commit ecd1c78c48
1 changed files with 3 additions and 0 deletions

View File

@ -239,6 +239,9 @@ static HRESULT WINAPI ddraw_surface7_QueryInterface(IDirectDrawSurface7 *iface,
WARN("%s not implemented, returning E_NOINTERFACE.\n", debugstr_guid(riid));
if (This->version != 7)
return E_INVALIDARG;
return E_NOINTERFACE;
}