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,7 +441,8 @@ printf("new ta %p\n", ta);
|
|||
printf("before add:"); list(t);
|
||||
#endif
|
||||
ta->next = t->firstAcc;
|
||||
t->firstAcc->prev = ta;
|
||||
if (t->firstAcc != NULL)
|
||||
t->firstAcc->prev = ta;
|
||||
t->firstAcc = ta;
|
||||
#ifdef TABLE_DEBUG_LINKEDLIST
|
||||
printf("after add:"); list(t);
|
||||
|
|
Loading…
Reference in New Issue