Commit 809dd5b0 authored by Lionel Ulmer's avatar Lionel Ulmer Committed by Alexandre Julliard

Handle DInput8 interfaces in device QueryInterface.

parent 02b9135d
...@@ -517,6 +517,11 @@ HRESULT WINAPI IDirectInputDevice2AImpl_QueryInterface( ...@@ -517,6 +517,11 @@ HRESULT WINAPI IDirectInputDevice2AImpl_QueryInterface(
*ppobj = This; *ppobj = This;
return DI_OK; return DI_OK;
} }
if (IsEqualGUID(&IID_IDirectInputDevice8A,riid)) {
IDirectInputDevice8_AddRef(iface);
*ppobj = This;
return DI_OK;
}
TRACE("Unsupported interface !\n"); TRACE("Unsupported interface !\n");
return E_FAIL; return E_FAIL;
} }
...@@ -548,6 +553,11 @@ HRESULT WINAPI IDirectInputDevice2WImpl_QueryInterface( ...@@ -548,6 +553,11 @@ HRESULT WINAPI IDirectInputDevice2WImpl_QueryInterface(
*ppobj = This; *ppobj = This;
return DI_OK; return DI_OK;
} }
if (IsEqualGUID(&IID_IDirectInputDevice8W,riid)) {
IDirectInputDevice8_AddRef(iface);
*ppobj = This;
return DI_OK;
}
TRACE("Unsupported interface !\n"); TRACE("Unsupported interface !\n");
return E_FAIL; return E_FAIL;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment