diff --git a/src/iaccessible.h b/src/iaccessible.h index 3f0673b..752187b 100644 --- a/src/iaccessible.h +++ b/src/iaccessible.h @@ -450,14 +450,11 @@ bool IsOnBookmark(HWND hwnd, POINT pt) { } } // traverse the child nodes. - long child_count = 0; - if (S_OK == child->get_accChildCount(&child_count) && child_count > 0) { - TraversalAccessible(child, LambdaEnumChild, 0); - } + TraversalAccessible(child, LambdaEnumChild); return flag; }; // Start traversing. - TraversalAccessible(pacc_main_window, LambdaEnumChild, 0); + TraversalAccessible(pacc_main_window, LambdaEnumChild); return flag; }