DINPUT device unacquire (mouse) fix

Hannu Valtonen Hannu.Valtonen at hut.fi
Mon Oct 27 18:53:44 CST 2003


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 at hut.fi
-------------- next part --------------
--- 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;
 }
 


More information about the wine-patches mailing list