From e8644f681b6e196fbc399c2d55ee61758c78324d Mon Sep 17 00:00:00 2001 From: Hartmut Birr Date: Tue, 29 Jul 2003 18:17:53 +0000 Subject: [PATCH] - Reintialize the timer object to reset the event object if there is no user timer in the list. svn path=/trunk/; revision=5315 --- reactos/subsys/win32k/ntuser/timer.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/reactos/subsys/win32k/ntuser/timer.c b/reactos/subsys/win32k/ntuser/timer.c index a1027707ec8..04da20ca29d 100644 --- a/reactos/subsys/win32k/ntuser/timer.c +++ b/reactos/subsys/win32k/ntuser/timer.c @@ -16,7 +16,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -/* $Id: timer.c,v 1.7 2003/07/23 17:04:24 gvg Exp $ +/* $Id: timer.c,v 1.8 2003/07/29 18:17:53 hbirr Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS kernel @@ -380,6 +380,11 @@ TimerThreadMain( MsgTimer = CONTAINING_RECORD( TimerListHead.Flink, MSG_TIMER_ENTRY, ListEntry); KeSetTimer(&Timer, MsgTimer->Timeout, NULL); } + else + { + /* Reinitialize the timer, this reset the state of the timer event on which we wait */ + KeInitializeTimer(&Timer); + } ExReleaseFastMutex(&Mutex);