Commit eca5ee9a authored by Sebastian Lackner's avatar Sebastian Lackner Committed by Alexandre Julliard

dinput: Print TRACE at the beginning of SysMouseWImpl_GetDeviceState function.

Also move the _dump_mouse_state() call inside of the lock. Signed-off-by: 's avatarSebastian Lackner <sebastian@fds-team.de> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 30136b32
...@@ -549,13 +549,13 @@ static HRESULT WINAPI SysMouseAImpl_Unacquire(LPDIRECTINPUTDEVICE8A iface) ...@@ -549,13 +549,13 @@ static HRESULT WINAPI SysMouseAImpl_Unacquire(LPDIRECTINPUTDEVICE8A iface)
static HRESULT WINAPI SysMouseWImpl_GetDeviceState(LPDIRECTINPUTDEVICE8W iface, DWORD len, LPVOID ptr) static HRESULT WINAPI SysMouseWImpl_GetDeviceState(LPDIRECTINPUTDEVICE8W iface, DWORD len, LPVOID ptr)
{ {
SysMouseImpl *This = impl_from_IDirectInputDevice8W(iface); SysMouseImpl *This = impl_from_IDirectInputDevice8W(iface);
TRACE("(%p)->(%u,%p)\n", This, len, ptr);
if(This->base.acquired == 0) return DIERR_NOTACQUIRED; 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); _dump_mouse_state(&This->m_state);
EnterCriticalSection(&This->base.crit);
/* Copy the current mouse state */ /* Copy the current mouse state */
fill_DataFormat(ptr, len, &This->m_state, &This->base.data_format); fill_DataFormat(ptr, len, &This->m_state, &This->base.data_format);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment