From: Guillermo J. Rozas Date: Tue, 3 Aug 1993 22:27:42 +0000 (+0000) Subject: Fix problem when shutting down before having set up the timer. X-Git-Tag: 20090517-FFI~8129 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=a3215b2369a2572fb093b944b8f251e6dcd61ef1;p=mit-scheme.git Fix problem when shutting down before having set up the timer. --- diff --git a/v7/src/microcode/ntutl/scheme32.c b/v7/src/microcode/ntutl/scheme32.c index cbe83e03f..dadf0a4e0 100644 --- a/v7/src/microcode/ntutl/scheme32.c +++ b/v7/src/microcode/ntutl/scheme32.c @@ -1,6 +1,6 @@ /* -*-C-*- -$Id: scheme32.c,v 1.1 1993/07/27 20:53:58 gjr Exp $ +$Id: scheme32.c,v 1.2 1993/08/03 22:27:42 gjr Exp $ Copyright (c) 1993 Massachusetts Institute of Technology @@ -109,6 +109,8 @@ win32_flush_async_timer (void * state) struct win32_timer_closure_s * timer_closure = ((struct win32_timer_closure_s *) state); + if (timer_closure == ((struct win32_timer_closure_s *) NULL)) + return; if (timer_closure->timer_id != 0) (void) timeKillEvent (timer_closure->timer_id);