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:
parent
019313b63e
commit
ea4353858d
|
@ -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 );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue