[DInput] Handle '8' version in QueryInterface
Lionel Ulmer
lionel.ulmer at free.fr
Fri Nov 25 13:05:23 CST 2005
Changelog:
Handle DInput8 interfaces in device QueryInterface
--
Lionel Ulmer - http://www.bbrox.org/
-------------- next part --------------
Index: dlls/dinput/device.c
===================================================================
RCS file: /home/wine/wine/dlls/dinput/device.c,v
retrieving revision 1.31
diff -u -r1.31 device.c
--- dlls/dinput/device.c 10 Nov 2005 12:14:59 -0000 1.31
+++ dlls/dinput/device.c 25 Nov 2005 19:02:48 -0000
@@ -517,6 +517,11 @@
*ppobj = This;
return DI_OK;
}
+ if (IsEqualGUID(&IID_IDirectInputDevice8A,riid)) {
+ IDirectInputDevice8_AddRef(iface);
+ *ppobj = This;
+ return DI_OK;
+ }
TRACE("Unsupported interface !\n");
return E_FAIL;
}
@@ -548,6 +553,11 @@
*ppobj = This;
return DI_OK;
}
+ if (IsEqualGUID(&IID_IDirectInputDevice8W,riid)) {
+ IDirectInputDevice8_AddRef(iface);
+ *ppobj = This;
+ return DI_OK;
+ }
TRACE("Unsupported interface !\n");
return E_FAIL;
}
More information about the wine-patches
mailing list