Module: wine Branch: master Commit: db5d8a2bd016c091310242f79e9bc24c95a25e8c URL: http://source.winehq.org/git/wine.git/?a=commit;h=db5d8a2bd016c091310242f79e...
Author: Jacek Caban jacek@codeweavers.com Date: Mon Dec 15 22:50:10 2008 +0100
mshtml: Fixed IHTMLInputTextElement vtbl and QueryInterface implementation.
Spotted by Andrew Talbot.
---
dlls/mshtml/htmlinput.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dlls/mshtml/htmlinput.c b/dlls/mshtml/htmlinput.c index abb6e2e..3c85118 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);