Alistair Leslie-Hughes : dinput: Return correct value in IDirectInputDevice2 Release.

Alexandre Julliard julliard at winehq.org
Mon Jun 10 13:43:54 CDT 2019


Module: wine
Branch: master
Commit: e29effc633f0ae26de8ce831fe1581bcc60c4f45
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=e29effc633f0ae26de8ce831fe1581bcc60c4f45

Author: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Date:   Fri Jun  7 05:37:18 2019 +0000

dinput: Return correct value in IDirectInputDevice2 Release.

Signed-off-by: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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 ade7947..c9d24a9 100644
--- a/dlls/dinput/device.c
+++ b/dlls/dinput/device.c
@@ -1168,7 +1168,7 @@ ULONG WINAPI IDirectInputDevice2WImpl_Release(LPDIRECTINPUTDEVICE8W iface)
 
     HeapFree(GetProcessHeap(), 0, This);
 
-    return DI_OK;
+    return ref;
 }
 
 ULONG WINAPI IDirectInputDevice2AImpl_Release(LPDIRECTINPUTDEVICE8A iface)




More information about the wine-cvs mailing list