commit | 22a04e1e5a0fbaf89de72cf370e4f1007042648d | [log] [tgz] |
---|---|---|
author | Gerard Patel <gerard.patel@asi.fr> | Sat May 19 17:35:43 2001 +0000 |
committer | Alexandre Julliard <julliard@winehq.org> | Sat May 19 17:35:43 2001 +0000 |
tree | 1c78f7c946a184b409ce2952dbd0d56156c3bc01 | |
parent | 4ee31d5e2b10a12db1864f685d294c46267c476c [diff] [blame] |
Fixed SetTimer for hwnd == 0.
diff --git a/windows/timer.c b/windows/timer.c index 030da66..23209f2 100644 --- a/windows/timer.c +++ b/windows/timer.c
@@ -104,7 +104,7 @@ TIMER * pTimer; HWINDOWPROC winproc = 0; - if (GetWindowThreadProcessId( hwnd, NULL ) != GetCurrentThreadId()) + if (hwnd && GetWindowThreadProcessId( hwnd, NULL ) != GetCurrentThreadId()) { SetLastError( ERROR_INVALID_WINDOW_HANDLE ); return 0;