[PATCH v2 1/4] dinput: Return E_NOINTERFACE from IDirectInputDevice2 QueryInterface
Alistair Leslie-Hughes
leslie_alistair at hotmail.com
Sat May 4 00:30:47 CDT 2019
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
---
dlls/dinput/device.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/dinput/device.c b/dlls/dinput/device.c
index 6c446163d1..cfade08433 100644
--- a/dlls/dinput/device.c
+++ b/dlls/dinput/device.c
@@ -1203,7 +1203,7 @@ HRESULT WINAPI IDirectInputDevice2WImpl_QueryInterface(LPDIRECTINPUTDEVICE8W ifa
}
WARN("Unsupported interface!\n");
- return E_FAIL;
+ return E_NOINTERFACE;
}
HRESULT WINAPI IDirectInputDevice2AImpl_QueryInterface(LPDIRECTINPUTDEVICE8A iface, REFIID riid, LPVOID *ppobj)
--
2.20.1
More information about the wine-devel
mailing list