Fixed SetTimer for hwnd == 0.
This commit is contained in:
parent
4ee31d5e2b
commit
22a04e1e5a
@ -104,7 +104,7 @@ static UINT TIMER_SetTimer( HWND hwnd, UINT id, UINT timeout,
|
|||||||
TIMER * pTimer;
|
TIMER * pTimer;
|
||||||
HWINDOWPROC winproc = 0;
|
HWINDOWPROC winproc = 0;
|
||||||
|
|
||||||
if (GetWindowThreadProcessId( hwnd, NULL ) != GetCurrentThreadId())
|
if (hwnd && GetWindowThreadProcessId( hwnd, NULL ) != GetCurrentThreadId())
|
||||||
{
|
{
|
||||||
SetLastError( ERROR_INVALID_WINDOW_HANDLE );
|
SetLastError( ERROR_INVALID_WINDOW_HANDLE );
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user