dinput: Support IUnknown in the IDirectInputEffect COM object.
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de> Signed-off-by: Huw Davies <huw@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
84eed4cf22
commit
48bf99ea89
|
@ -1474,7 +1474,7 @@ static HRESULT WINAPI effect_QueryInterface(IDirectInputEffect *iface,
|
|||
|
||||
TRACE("%p %s %p\n", This, debugstr_guid(guid), out);
|
||||
|
||||
if(IsEqualIID(guid, &IID_IDirectInputEffect)){
|
||||
if(IsEqualIID(guid, &IID_IUnknown) || IsEqualIID(guid, &IID_IDirectInputEffect)){
|
||||
*out = iface;
|
||||
IDirectInputEffect_AddRef(iface);
|
||||
return S_OK;
|
||||
|
|
Loading…
Reference in New Issue