From db5d8a2bd016c091310242f79e9bc24c95a25e8c Mon Sep 17 00:00:00 2001 From: Jacek Caban <jacek@codeweavers.com> Date: Mon, 15 Dec 2008 22:50:10 +0100 Subject: [PATCH] mshtml: Fixed IHTMLInputTextElement vtbl and QueryInterface implementation. Spotted by Andrew Talbot. --- dlls/mshtml/htmlinput.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dlls/mshtml/htmlinput.c b/dlls/mshtml/htmlinput.c index abb6e2e800a..3c851183fe2 100644 --- a/dlls/mshtml/htmlinput.c +++ b/dlls/mshtml/htmlinput.c @@ -1082,7 +1082,7 @@ static HRESULT HTMLInputElement_QI(HTMLDOMNode *iface, REFIID riid, void **ppv) *ppv = HTMLINPUT(This); }else if(IsEqualGUID(&IID_IHTMLInputTextElement, riid)) { TRACE("(%p)->(IID_IHTMLInputTextElement %p)\n", This, ppv); - *ppv = HTMLINPUT(This); + *ppv = HTMLINPUTTEXT(This); } if(*ppv) { @@ -1145,6 +1145,7 @@ HTMLElement *HTMLInputElement_Create(nsIDOMHTMLElement *nselem) nsresult nsres; ret->lpHTMLInputElementVtbl = &HTMLInputElementVtbl; + ret->lpHTMLInputTextElementVtbl = &HTMLInputTextElementVtbl; ret->element.node.vtbl = &HTMLInputElementImplVtbl; init_dispex(&ret->element.node.dispex, (IUnknown*)HTMLINPUT(ret), &HTMLInputElement_dispex); -- GitLab