bug 702903 - use the correct QueryInterface() r=tbsaunde a=legnitto
authorAlexander Surkov <surkov.alexander@gmail.com>
Tue, 22 Nov 2011 18:50:38 -0500
changeset 78965 a8b9b7d98fb5c5464da70c122b6d9b5d0a88d90a
parent 78964 c5ecaaed936d6abec65ecddbb15c3effeb44a790
child 78966 d930274ef40963e39dc79f65867f2ebc38f91639
child 78969 0192f8f8bb26aa13420a469e137c8424c960a10b
child 78972 a4086b2b8132555ad8200c2a12d2d1262eb8da30
push id1
push usersledru@mozilla.com
push dateThu, 04 Dec 2014 17:57:20 +0000
reviewerstbsaunde, legnitto
bugs702903
milestone9.0
bug 702903 - use the correct QueryInterface() r=tbsaunde a=legnitto
accessible/src/msaa/ia2AccessibleRelation.cpp
--- a/accessible/src/msaa/ia2AccessibleRelation.cpp
+++ b/accessible/src/msaa/ia2AccessibleRelation.cpp
@@ -186,17 +186,17 @@ ia2AccessibleRelation::get_nTargets(long
 
 STDMETHODIMP
 ia2AccessibleRelation::get_target(long aTargetIndex, IUnknown **aTarget)
 {
 __try {
   if (aTargetIndex < 0 || aTargetIndex >= mTargets.Length() || !aTarget)
     return E_INVALIDARG;
 
-  mTargets[aTargetIndex]->QueryInterface((const nsID&) IID_IUnknown, (void**) aTarget);
+  mTargets[aTargetIndex]->QueryNativeInterface(IID_IUnknown, (void**) aTarget);
   return S_OK;
 
 } __except(nsAccessNodeWrap::FilterA11yExceptions(::GetExceptionCode(), GetExceptionInformation())) { }
   return E_FAIL;
 }
 
 STDMETHODIMP
 ia2AccessibleRelation::get_targets(long aMaxTargets, IUnknown **aTargets,