dinput: Support IUnknown in the IDirectInputEffect COM object. (3rd try)

Michael Stefaniuc mstefani at redhat.de
Tue Mar 15 06:06:08 CDT 2016


Signed-off-by: Michael Stefaniuc <mstefani at redhat.de>
---
v3: How to embarass myself...
    Or the reason why I don't trust myself too and have scripts to deal
    with 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(guid, &IID_IUnknown) || IsEqualIID(guid, &IID_IDirectInputEffect)){
         *out = iface;
         IDirectInputEffect_AddRef(iface);
         return S_OK;
-- 
2.4.3



More information about the wine-patches mailing list