Fix serious bug in GTIMER.
This commit is contained in:
parent
9ddf7c4284
commit
476d11d599
1 changed files with 1 additions and 1 deletions
|
@ -196,7 +196,7 @@ void gtimerStop(GTimer *pt) {
|
||||||
gfxMutexEnter(&mutex);
|
gfxMutexEnter(&mutex);
|
||||||
if (pt->flags & GTIMER_FLG_SCHEDULED) {
|
if (pt->flags & GTIMER_FLG_SCHEDULED) {
|
||||||
// Cancel it!
|
// Cancel it!
|
||||||
if (pt->next == pt->prev)
|
if (pt->next == pt)
|
||||||
pTimerHead = 0;
|
pTimerHead = 0;
|
||||||
else {
|
else {
|
||||||
pt->next->prev = pt->prev;
|
pt->next->prev = pt->prev;
|
||||||
|
|
Loading…
Add table
Reference in a new issue