From 6ff9c7396b14fff11a2b234cbebb9b162eea39e6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?G=C3=A9=20van=20Geldorp?= Date: Mon, 12 Dec 2005 22:57:45 +0000 Subject: [PATCH] Sync to Wine-0_9_3: Lionel Ulmer - Handle DInput8 interfaces in device QueryInterface. Francois Gouget - Assorted spelling fixes. svn path=/trunk/; revision=20132 --- reactos/lib/dinput/device.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/reactos/lib/dinput/device.c b/reactos/lib/dinput/device.c index a032b7de151..8cca6f5ca3a 100644 --- a/reactos/lib/dinput/device.c +++ b/reactos/lib/dinput/device.c @@ -517,6 +517,11 @@ HRESULT WINAPI IDirectInputDevice2AImpl_QueryInterface( *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_QueryInterface( *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; } -- 2.17.1