Module: wine Branch: master Commit: eca5ee9a49fab652ae87a25c534e88fc4f6edca0 URL: http://source.winehq.org/git/wine.git/?a=commit;h=eca5ee9a49fab652ae87a25c53...
Author: Sebastian Lackner sebastian@fds-team.de Date: Thu Nov 5 15:57:19 2015 +0100
dinput: Print TRACE at the beginning of SysMouseWImpl_GetDeviceState function.
Also move the _dump_mouse_state() call inside of the lock.
Signed-off-by: Sebastian Lackner sebastian@fds-team.de Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/dinput/mouse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/dinput/mouse.c b/dlls/dinput/mouse.c index 132efce..3e63a34 100644 --- a/dlls/dinput/mouse.c +++ b/dlls/dinput/mouse.c @@ -549,13 +549,13 @@ static HRESULT WINAPI SysMouseAImpl_Unacquire(LPDIRECTINPUTDEVICE8A iface) static HRESULT WINAPI SysMouseWImpl_GetDeviceState(LPDIRECTINPUTDEVICE8W iface, DWORD len, LPVOID ptr) { SysMouseImpl *This = impl_from_IDirectInputDevice8W(iface); + TRACE("(%p)->(%u,%p)\n", This, len, ptr);
if(This->base.acquired == 0) return DIERR_NOTACQUIRED;
- TRACE("(this=%p,0x%08x,%p):\n", This, len, ptr); + EnterCriticalSection(&This->base.crit); _dump_mouse_state(&This->m_state);
- EnterCriticalSection(&This->base.crit); /* Copy the current mouse state */ fill_DataFormat(ptr, len, &This->m_state, &This->base.data_format);