From a2353ff109fbc15c571d0dcf962e554178bf8b81 Mon Sep 17 00:00:00 2001 From: James Teh Date: Tue, 19 Oct 2021 03:58:56 +0000 Subject: [PATCH] Bug 1735952 part 1: Support QueryInterface to IAccessibleValue for RemoteAccessible. r=morgan Differential Revision: https://phabricator.services.mozilla.com/D128560 --- accessible/windows/ia2/ia2AccessibleValue.cpp | 2 +- accessible/windows/msaa/MsaaAccessible.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/accessible/windows/ia2/ia2AccessibleValue.cpp b/accessible/windows/ia2/ia2AccessibleValue.cpp index 34f0f8730c1f..ed8b7a4de288 100644 --- a/accessible/windows/ia2/ia2AccessibleValue.cpp +++ b/accessible/windows/ia2/ia2AccessibleValue.cpp @@ -34,7 +34,7 @@ ia2AccessibleValue::QueryInterface(REFIID iid, void** ppv) { *ppv = nullptr; if (IID_IAccessibleValue == iid) { - AccessibleWrap* valueAcc = LocalAcc(); + Accessible* valueAcc = Acc(); if (valueAcc && valueAcc->HasNumericValue()) { RefPtr result = this; result.forget(ppv); diff --git a/accessible/windows/msaa/MsaaAccessible.cpp b/accessible/windows/msaa/MsaaAccessible.cpp index 766822c6109e..ccaca6bdccaf 100644 --- a/accessible/windows/msaa/MsaaAccessible.cpp +++ b/accessible/windows/msaa/MsaaAccessible.cpp @@ -865,7 +865,7 @@ MsaaAccessible::QueryInterface(REFIID iid, void** ppv) { if (SUCCEEDED(hr)) return hr; } - if (!*ppv && localAcc) { + if (!*ppv) { HRESULT hr = ia2AccessibleValue::QueryInterface(iid, ppv); if (SUCCEEDED(hr)) return hr; }