user32: Do not call the lparam for WM_SYSTIMER messages.

Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura 2022-04-20 19:15:33 -05:00 committed by Alexandre Julliard
parent 019313b63e
commit ea4353858d
1 changed files with 10 additions and 13 deletions

View File

@ -861,22 +861,19 @@ LRESULT WINAPI DECLSPEC_HOTPATCH DispatchMessageA( const MSG* msg )
LRESULT retval;
/* Process timer messages */
if ((msg->message == WM_TIMER) || (msg->message == WM_SYSTIMER))
if (msg->lParam && msg->message == WM_TIMER)
{
if (msg->lParam)
__TRY
{
__TRY
{
retval = CallWindowProcA( (WNDPROC)msg->lParam, msg->hwnd,
msg->message, msg->wParam, GetTickCount() );
}
__EXCEPT_ALL
{
retval = 0;
}
__ENDTRY
return retval;
retval = CallWindowProcA( (WNDPROC)msg->lParam, msg->hwnd,
msg->message, msg->wParam, GetTickCount() );
}
__EXCEPT_ALL
{
retval = 0;
}
__ENDTRY
return retval;
}
return NtUserDispatchMessageA( msg );
}