dinput: Support IUnknown in the IDirectInputEffect COM object. (2nd try)

Michael Stefaniuc mstefani at redhat.de
Tue Mar 15 05:43:58 CDT 2016

Signed-off-by: Michael Stefaniuc <mstefani at redhat.de>
v2: Use IsEqualIID consistently. Thanks Huw!

And of course again not even compile tested as I don't have a Mac. Yes,
I need to set me up with a cross compile for that.

 dlls/dinput/joystick_osx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/dinput/joystick_osx.c b/dlls/dinput/joystick_osx.c
index 6a8926d..19ca070 100644
--- a/dlls/dinput/joystick_osx.c
+++ b/dlls/dinput/joystick_osx.c
@@ -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(riid, &IID_IUnknown) || IsEqualIID(guid, &IID_IDirectInputEffect)){
         *out = iface;
         return S_OK;

More information about the wine-patches mailing list