Fixed the creation bug (incorrect empty doubly linked list handling; see http://stackoverflow.com/questions/28520939/how-are-inspect-exe-ui-accessibility-checker-causing-my-program-to-gracefully-re).
This commit is contained in:
parent
345b4b4263
commit
728bd91523
|
@ -441,6 +441,7 @@ printf("new ta %p\n", ta);
|
||||||
printf("before add:"); list(t);
|
printf("before add:"); list(t);
|
||||||
#endif
|
#endif
|
||||||
ta->next = t->firstAcc;
|
ta->next = t->firstAcc;
|
||||||
|
if (t->firstAcc != NULL)
|
||||||
t->firstAcc->prev = ta;
|
t->firstAcc->prev = ta;
|
||||||
t->firstAcc = ta;
|
t->firstAcc = ta;
|
||||||
#ifdef TABLE_DEBUG_LINKEDLIST
|
#ifdef TABLE_DEBUG_LINKEDLIST
|
||||||
|
|
Loading…
Reference in New Issue