mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 04:13:31 +00:00
[NTVDM]
don't try to deference an uninitialized Timer svn path=/trunk/; revision=67557
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user