summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2015-02-14 17:31:36 -0500
committerPietro Gagliardi <[email protected]>2015-02-14 17:31:36 -0500
commit728bd91523be6d828571b4380518d953d8480bcc (patch)
tree5dd289350ad85dd6bbc81511e59734f01cfbf373
parent345b4b42638aea58e8dd0d723f42ce0db4f7ea2d (diff)
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).
-rw-r--r--wintable/accessibility.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/wintable/accessibility.h b/wintable/accessibility.h
index 77c60ba..c69c9cb 100644
--- a/wintable/accessibility.h
+++ b/wintable/accessibility.h
@@ -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);