Fix serious bug in GTIMER.
parent
9ddf7c4284
commit
476d11d599
|
@ -196,7 +196,7 @@ void gtimerStop(GTimer *pt) {
|
|||
gfxMutexEnter(&mutex);
|
||||
if (pt->flags & GTIMER_FLG_SCHEDULED) {
|
||||
// Cancel it!
|
||||
if (pt->next == pt->prev)
|
||||
if (pt->next == pt)
|
||||
pTimerHead = 0;
|
||||
else {
|
||||
pt->next->prev = pt->prev;
|
||||
|
|
Loading…
Reference in New Issue