From 809dd5b04442990b9d0a409875b92c118c0a9626 Mon Sep 17 00:00:00 2001 From: Lionel Ulmer Date: Mon, 28 Nov 2005 10:38:59 +0100 Subject: [PATCH] Handle DInput8 interfaces in device QueryInterface. --- dlls/dinput/device.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/dlls/dinput/device.c b/dlls/dinput/device.c index a032b7de151..8cca6f5ca3a 100644 --- a/dlls/dinput/device.c +++ b/dlls/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; }