X-Git-Url: https://git.webkit.org/?p=WebKit-https.git;a=blobdiff_plain;f=WebKit%2Fwin%2FWebActionPropertyBag.cpp;h=41f9ccc895b80ab670778806bac3fe374ed01f37;hp=1e4994675efbc04240e9adb1f8573bba815e4225;hb=c1d734e58b724369357ecd990853e680fcf036b6;hpb=b1763e26776a727a64b25da5eb0140b316ccb848 diff --git a/WebKit/win/WebActionPropertyBag.cpp b/WebKit/win/WebActionPropertyBag.cpp index 1e4994675efb..41f9ccc895b8 100644 --- a/WebKit/win/WebActionPropertyBag.cpp +++ b/WebKit/win/WebActionPropertyBag.cpp @@ -118,11 +118,8 @@ HRESULT STDMETHODCALLTYPE WebActionPropertyBag::Read(LPCOLESTR pszPropName, VARI } else if (isEqual(pszPropName, WebActionElementKey)) { if (const MouseEvent* mouseEvent = findMouseEvent(m_action.event())) { IntPoint point(mouseEvent->clientX(), mouseEvent->clientY()); - COMPtr elementPropertyBag; - elementPropertyBag.adoptRef(WebElementPropertyBag::createInstance(m_frame->eventHandler()->hitTestResultAtPoint(point, false))); - V_VT(pVar) = VT_UNKNOWN; - elementPropertyBag->QueryInterface(IID_IUnknown, (void**)V_UNKNOWNREF(pVar)); + V_UNKNOWN(pVar) = WebElementPropertyBag::createInstance(m_frame->eventHandler()->hitTestResultAtPoint(point, false)); return S_OK; } } else if (isEqual(pszPropName, WebActionButtonKey)) {