summaryrefslogtreecommitdiffstats
path: root/accessible/xpcom/xpcAccessible.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'accessible/xpcom/xpcAccessible.cpp')
-rw-r--r--accessible/xpcom/xpcAccessible.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/accessible/xpcom/xpcAccessible.cpp b/accessible/xpcom/xpcAccessible.cpp
index 37901e3ec2..ebf7ba8e80 100644
--- a/accessible/xpcom/xpcAccessible.cpp
+++ b/accessible/xpcom/xpcAccessible.cpp
@@ -636,7 +636,8 @@ xpcAccessible::ScrollToPoint(uint32_t aCoordinateType, int32_t aX, int32_t aY) {
NS_IMETHODIMP
xpcAccessible::Announce(const nsAString& aAnnouncement, uint16_t aPriority) {
- if (RemoteAccessible* proxy = IntlGeneric()->AsRemote()) {
+ RemoteAccessible* proxy = IntlGeneric()->AsRemote();
+ if (proxy) {
#if defined(XP_WIN)
return NS_ERROR_NOT_IMPLEMENTED;
#else