bug 1313272 - correctly return the result of ia2AccessibleHyperlink::get_anchor() r=aklotz
authorTrevor Saunders <tbsaunde@tbsaunde.org>
Wed, 26 Oct 2016 20:16:57 -0400
changeset 319871 4ad62b743d5a1c41d4e71f6fb5f4e976f1899cd8
parent 319870 5d495bd2e961c3e4455568cbeec3feda15e1f383
child 319872 f686f5590975a862d85e61f643c6dc39b1a8ee8f
push id20749
push userryanvm@gmail.com
push dateSat, 29 Oct 2016 13:21:21 +0000
treeherderfx-team@1b170b39ed6b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersaklotz
bugs1313272
milestone52.0a1
bug 1313272 - correctly return the result of ia2AccessibleHyperlink::get_anchor() r=aklotz
accessible/windows/ia2/ia2AccessibleHyperlink.cpp
--- a/accessible/windows/ia2/ia2AccessibleHyperlink.cpp
+++ b/accessible/windows/ia2/ia2AccessibleHyperlink.cpp
@@ -69,18 +69,17 @@ ia2AccessibleHyperlink::get_anchor(long 
   if (!anchor)
     return S_FALSE;
 
   void* instancePtr = nullptr;
   HRESULT result = anchor->QueryInterface(IID_IUnknown, &instancePtr);
   if (FAILED(result))
     return result;
 
-  IUnknown* unknownPtr = static_cast<IUnknown*>(instancePtr);
-  aAnchor->ppunkVal = &unknownPtr;
+  aAnchor->punkVal = static_cast<IUnknown*>(instancePtr);
   aAnchor->vt = VT_UNKNOWN;
   return S_OK;
 
   A11Y_TRYBLOCK_END
 }
 
 STDMETHODIMP
 ia2AccessibleHyperlink::get_anchorTarget(long aIndex, VARIANT* aAnchorTarget)