summaryrefslogtreecommitdiffstats
path: root/views/accessibility/view_accessibility.cc
diff options
context:
space:
mode:
Diffstat (limited to 'views/accessibility/view_accessibility.cc')
-rw-r--r--views/accessibility/view_accessibility.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/views/accessibility/view_accessibility.cc b/views/accessibility/view_accessibility.cc
index f9dc5c6..2854c15 100644
--- a/views/accessibility/view_accessibility.cc
+++ b/views/accessibility/view_accessibility.cc
@@ -666,6 +666,9 @@ bool ViewAccessibility::IsValidNav(int nav_dir, int start_id, int lower_bound,
}
void ViewAccessibility::SetState(VARIANT* msaa_state, views::View* view) {
+ // Ensure the output param is initialized to zero.
+ msaa_state->lVal = 0;
+
// Default state; all views can have accessibility focus.
msaa_state->lVal |= STATE_SYSTEM_FOCUSABLE;