Fix serious bug in GTIMER.

This commit is contained in:
inmarket 2015-01-03 18:41:38 +10:00
parent 9ddf7c4284
commit 476d11d599

View file

@ -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;