don't try to deference an uninitialized Timer

svn path=/trunk/; revision=67557
This commit is contained in:
Christoph von Wittich 2015-05-05 08:07:08 +00:00
parent 4e51a1b77e
commit 5324112cdb

View file

@ -188,8 +188,12 @@ VOID SetHardwareTimerDelay(PHARDWARE_TIMER Timer, ULONGLONG NewDelay)
VOID DestroyHardwareTimer(PHARDWARE_TIMER Timer)
{
if (Timer->Flags & HARDWARE_TIMER_ENABLED) RemoveEntryList(&Timer->Link);
RtlFreeHeap(RtlGetProcessHeap(), 0, Timer);
if (Timer)
{
if (Timer->Flags & HARDWARE_TIMER_ENABLED) RemoveEntryList(&Timer->Link);
RtlFreeHeap(RtlGetProcessHeap(), 0, Timer);
Timer = NULL;
}
}
BOOLEAN ClockInitialize(VOID)