ChangeSet ID: 21449 CVSROOT: /opt/cvs-commit Module name: wine Changes by: julliard(a)winehq.org 2005/11/28 04:59:56 Modified files: dlls/dinput : device.c Log message: Lionel Ulmer <lionel.ulmer(a)free.fr> Handle DInput8 interfaces in device QueryInterface. Patch: http://cvs.winehq.org/patch.py?id=21449 Old revision New revision Changes Path 1.31 1.32 +10 -0 wine/dlls/dinput/device.c Index: wine/dlls/dinput/device.c diff -u -p wine/dlls/dinput/device.c:1.31 wine/dlls/dinput/device.c:1.32 --- wine/dlls/dinput/device.c:1.31 28 Nov 2005 10:59:56 -0000 +++ wine/dlls/dinput/device.c 28 Nov 2005 10:59:56 -0000 @@ -517,6 +517,11 @@ HRESULT WINAPI IDirectInputDevice2AImpl_ *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 @@ HRESULT WINAPI IDirectInputDevice2WImpl_ *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; }