[NTOS:MM] Quick fix: use SIZE_T instead of ULONG, because ULONG is 32-bit and on...
[reactos.git] / ntoskrnl / ex / timer.c
index 51016b7..8e2c85d 100644 (file)
@@ -301,7 +301,7 @@ NtCancelTimer(IN HANDLE TimerHandle,
             KeAcquireSpinLockAtDpcLevel(&TimerThread->ActiveTimerListLock);
 
             /* Remove it */
-            RemoveEntryList(&TimerThread->ActiveTimerListHead);
+            RemoveEntryList(&Timer->ActiveTimerListEntry);
             Timer->ApcAssociated = FALSE;
 
             /* Unlock the list */
@@ -659,7 +659,7 @@ NtSetTimer(IN HANDLE TimerHandle,
             KeAcquireSpinLockAtDpcLevel(&TimerThread->ActiveTimerListLock);
 
             /* Remove it */
-            RemoveEntryList(&TimerThread->ActiveTimerListHead);
+            RemoveEntryList(&Timer->ActiveTimerListEntry);
             Timer->ApcAssociated = FALSE;
 
             /* Unlock the list */