Fixed SetTimer for hwnd == 0.

This commit is contained in:
Gerard Patel 2001-05-19 17:35:43 +00:00 committed by Alexandre Julliard
parent 4ee31d5e2b
commit 22a04e1e5a

View File

@ -104,7 +104,7 @@ static UINT TIMER_SetTimer( HWND hwnd, UINT id, UINT timeout,
TIMER * pTimer;
HWINDOWPROC winproc = 0;
if (GetWindowThreadProcessId( hwnd, NULL ) != GetCurrentThreadId())
if (hwnd && GetWindowThreadProcessId( hwnd, NULL ) != GetCurrentThreadId())
{
SetLastError( ERROR_INVALID_WINDOW_HANDLE );
return 0;