commit | 15979fda7592a3c62cb64d19132cba20831bb60c | [log] [tgz] |
---|---|---|
author | Alexandre Julliard <julliard@winehq.org> | Sat Mar 23 18:50:04 2002 +0000 |
committer | Alexandre Julliard <julliard@winehq.org> | Sat Mar 23 18:50:04 2002 +0000 |
tree | 8dd381f21a10db2f3c696396024a5452702c0a81 | |
parent | ac0e1379983406aab2da9aa2f7271f88495da005 [diff] [blame] |
Fixed handling of timer callback routines when the thread owning the callback terminates.
diff --git a/server/thread.c b/server/thread.c index 09ad63b..eba63e1 100644 --- a/server/thread.c +++ b/server/thread.c
@@ -554,6 +554,7 @@ /* cancel a possible previous APC with the same owner */ if (owner) thread_cancel_apc( thread, owner, system ); + if (thread->state == TERMINATED) return 0; if (!(apc = mem_alloc( sizeof(*apc) + (nb_args-1)*sizeof(apc->args[0]) ))) return 0; apc->prev = queue->tail;