Module: wine Branch: master Commit: 8916d64177d34de9a747a9b828f04fc2920caa3b URL: http://source.winehq.org/git/wine.git/?a=commit;h=8916d64177d34de9a747a9b828...
Author: Jacek Caban jacek@codeweavers.com Date: Thu Oct 4 02:15:09 2007 +0200
mshtml: Added IHTMLSelectElement::get_length implementation.
---
dlls/mshtml/htmlselect.c | 15 +++++++++++++-- 1 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/dlls/mshtml/htmlselect.c b/dlls/mshtml/htmlselect.c index 920de1b..00d0f6f 100644 --- a/dlls/mshtml/htmlselect.c +++ b/dlls/mshtml/htmlselect.c @@ -291,8 +291,19 @@ static HRESULT WINAPI HTMLSelectElement_put_length(IHTMLSelectElement *iface, lo static HRESULT WINAPI HTMLSelectElement_get_length(IHTMLSelectElement *iface, long *p) { HTMLSelectElement *This = HTMLSELECT_THIS(iface); - FIXME("(%p)->(%p)\n", This, p); - return E_NOTIMPL; + PRUint32 length = 0; + nsresult nsres; + + TRACE("(%p)->(%p)\n", This, p); + + nsres = nsIDOMHTMLSelectElement_GetLength(This->nsselect, &length); + if(NS_FAILED(nsres)) + ERR("GetLength failed: %08x\n", nsres); + + *p = length; + + TRACE("ret %ld\n", *p); + return S_OK; }
static HRESULT WINAPI HTMLSelectElement_get__newEnum(IHTMLSelectElement *iface, IUnknown **p)