summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2015-02-14 14:19:04 -0500
committerPietro Gagliardi <[email protected]>2015-02-14 14:19:04 -0500
commitc6cd57e82c27ef4b8a119ec4e2645cbc092b1b03 (patch)
tree86115c074e45ea10a3b4a86f77f20f3447ce7794
parent3ce7a68754d58a1d6aed2b45d350a14270286e4e (diff)
Found one bug: forgot to update t->firstAcc in tableAccRelease().
-rw-r--r--wintable/accessibility.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/wintable/accessibility.h b/wintable/accessibility.h
index 39e9cf1..7af7390 100644
--- a/wintable/accessibility.h
+++ b/wintable/accessibility.h
@@ -89,6 +89,8 @@ static ULONG STDMETHODCALLTYPE tableAccRelease(IAccessible *this)
if (TA->refcount == 0) {
struct tableAcc *prev, *next;
+ if (TA->t != NULL && TA->t->firstAcc == TA)
+ TA->t->firstAcc = TA->next;
prev = TA->prev;
next = TA->next;
if (prev != NULL)