ddraw: Surface versions before 7 return E_INVALIDARG on failure in QueryInterface().
This commit is contained in:
parent
75aa0b38f7
commit
ecd1c78c48
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue