Author: cwittich Date: Wed Jan 28 08:08:13 2009 New Revision: 39177
URL: http://svn.reactos.org/svn/reactos?rev=39177&view=rev Log: -sync RtlDeleteTimer with wine Giannis Adamopoulos (johnyadams at hotmail dot com)
Modified: trunk/reactos/lib/rtl/timerqueue.c
Modified: trunk/reactos/lib/rtl/timerqueue.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/lib/rtl/timerqueue.c?rev=39... ============================================================================== --- trunk/reactos/lib/rtl/timerqueue.c [iso-8859-1] (original) +++ trunk/reactos/lib/rtl/timerqueue.c [iso-8859-1] Wed Jan 28 08:08:13 2009 @@ -505,10 +505,13 @@ HANDLE CompletionEvent) { struct queue_timer *t = Timer; - struct timer_queue *q = t->q; + struct timer_queue *q; NTSTATUS status = STATUS_PENDING; HANDLE event = NULL;
+ if (!Timer) + return STATUS_INVALID_PARAMETER_1; + q = t->q; if (CompletionEvent == INVALID_HANDLE_VALUE) status = NtCreateEvent(&event, EVENT_ALL_ACCESS, NULL, FALSE, FALSE); else if (CompletionEvent)