DINPUT device unacquire (mouse) fix

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



License: LGPL

I stumbled upon this when looking at fixing mouse support for Crimson lands. According to MSDN DirectInputDevice Unacquire is allowed even for devices which haven't been acquired yet.

Changelog:
- SysMouseAImpl_Unacquire should return DI_NOEFFECT if the device is not in an acquired state.


- Hannu Valtonen
Hannu.Valtonen@hut.fi
--- main.c	2003-10-28 02:38:12.000000000 +0200
+++ wine/dlls/dinput/mouse/main.c	2003-10-28 02:38:25.000000000 +0200
@@ -660,8 +660,8 @@
         This->acquired = 0;
     }
     else
-	ERR("Unacquiring a not-acquired device !!!\n");
-
+	return DI_NOEFFECT;
+	
     return DI_OK;
 }
 

[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux