Commit ea435385 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

user32: Do not call the lparam for WM_SYSTIMER messages.

parent 019313b6
......@@ -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 );
}
......
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