dlls/dinput/mouse.c - GetDeviceState

James Dean Anderson petr at pantek.org
Wed Jun 16 13:50:50 CDT 2004


this patch adds a missing errorcode in GetDeviceState in
dlls/dinput/mouse.c which prevented the mouse to work in some game.

jda

I'm sorry if I posted this message twice.

-------------- next part --------------
? programs/winetest/gui.res
? programs/winetest/winetest.rc
Index: dlls/dinput/mouse.c
===================================================================
RCS file: /home/wine/wine/dlls/dinput/mouse.c,v
retrieving revision 1.3
diff -u -d -r1.3 mouse.c
--- dlls/dinput/mouse.c	4 Jun 2004 18:06:37 -0000	1.3
+++ dlls/dinput/mouse.c	16 Jun 2004 18:17:16 -0000
@@ -677,6 +677,8 @@
 	LPDIRECTINPUTDEVICE8A iface,DWORD len,LPVOID ptr
 ) {
     ICOM_THIS(SysMouseImpl,iface);
+
+    if(This->acquired == 0) return DIERR_NOTACQUIRED;
     
     EnterCriticalSection(&(This->crit));
     TRACE("(this=%p,0x%08lx,%p): \n",This,len,ptr);



More information about the wine-patches mailing list