Jacek Caban : mshtml: Added IHTMLOptionElement::put_value implementation.
Alexandre Julliard
julliard at winehq.org
Mon Oct 15 11:27:56 CDT 2007
Module: wine
Branch: master
Commit: 108bb7af2fb0ef9db76d44479b97e87826cfb421
URL: http://source.winehq.org/git/wine.git/?a=commit;h=108bb7af2fb0ef9db76d44479b97e87826cfb421
Author: Jacek Caban <jacek at codeweavers.com>
Date: Sun Oct 14 00:10:15 2007 +0200
mshtml: Added IHTMLOptionElement::put_value implementation.
---
dlls/mshtml/htmloption.c | 14 ++++++++++++--
1 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/dlls/mshtml/htmloption.c b/dlls/mshtml/htmloption.c
index a356531..c21a4bb 100644
--- a/dlls/mshtml/htmloption.c
+++ b/dlls/mshtml/htmloption.c
@@ -121,8 +121,18 @@ static HRESULT WINAPI HTMLOptionElement_get_selected(IHTMLOptionElement *iface,
static HRESULT WINAPI HTMLOptionElement_put_value(IHTMLOptionElement *iface, BSTR v)
{
HTMLOptionElement *This = HTMLOPTION_THIS(iface);
- FIXME("(%p)->(%s)\n", This, debugstr_w(v));
- return E_NOTIMPL;
+ nsAString value_str;
+ nsresult nsres;
+
+ TRACE("(%p)->(%s)\n", This, debugstr_w(v));
+
+ nsAString_Init(&value_str, v);
+ nsres = nsIDOMHTMLOptionElement_SetValue(This->nsoption, &value_str);
+ nsAString_Finish(&value_str);
+ if(NS_FAILED(nsres))
+ ERR("SetValue failed: %08x\n", nsres);
+
+ return S_OK;
}
static HRESULT WINAPI HTMLOptionElement_get_value(IHTMLOptionElement *iface, BSTR *p)
More information about the wine-cvs
mailing list