Commit ecd1c78c authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

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

parent 75aa0b38
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment