diff options
author | dmazzoni@chromium.org <dmazzoni@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-23 17:41:12 +0000 |
---|---|---|
committer | dmazzoni@chromium.org <dmazzoni@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-23 17:41:12 +0000 |
commit | 0b32f41d746954cb9c66cb7bfafe118d9f0d1bfd (patch) | |
tree | 6c1b7bb587824ec38d565ff4e0e9c406fb08c567 /views | |
parent | c28be2f52c47f143df0109ccaa9d4dec15fb257c (diff) | |
download | chromium_src-0b32f41d746954cb9c66cb7bfafe118d9f0d1bfd.zip chromium_src-0b32f41d746954cb9c66cb7bfafe118d9f0d1bfd.tar.gz chromium_src-0b32f41d746954cb9c66cb7bfafe118d9f0d1bfd.tar.bz2 |
Submitting for dtseng. Ensure that the variant out param gets properly
initialized as the variant isn't guaranteed to have been zeroed.
Original issue: 1689011
BUG=36086
TEST=none
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45460 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views')
-rw-r--r-- | views/accessibility/view_accessibility.cc | 3 |
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; |