[PATCH] Implement IHTMLBodyElement put_background

Alistair Leslie-Hughes leslie_alistair at hotmail.com
Tue Sep 23 05:03:58 CDT 2008


---
 dlls/mshtml/htmlbody.c |   19 +++++++++++++++++--
 1 files changed, 17 insertions(+), 2 deletions(-)

diff --git a/dlls/mshtml/htmlbody.c b/dlls/mshtml/htmlbody.c
index 9fad187..e5545f5 100644
--- a/dlls/mshtml/htmlbody.c
+++ b/dlls/mshtml/htmlbody.c
@@ -140,8 +140,23 @@ static HRESULT WINAPI HTMLBodyElement_Invoke(IHTMLBodyElement *iface, DISPID dis
 static HRESULT WINAPI HTMLBodyElement_put_background(IHTMLBodyElement *iface, BSTR v)
 {
     HTMLBodyElement *This = HTMLBODY_THIS(iface);
-    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
-    return E_NOTIMPL;
+    HRESULT hr = S_OK;
+    nsAString nsstr;
+    nsresult nsres;
+
+    TRACE("(%p)->(%s)\n", This, debugstr_w(v));
+
+    nsAString_Init(&nsstr, v);
+
+    nsres = nsIDOMHTMLBodyElement_SetBackground(This->nsbody, &nsstr);
+    if(!NS_SUCCEEDED(nsres))
+    {
+        hr = E_FAIL;
+    }
+
+    nsAString_Finish(&nsstr);
+
+    return hr;
 }
 
 static HRESULT WINAPI HTMLBodyElement_get_background(IHTMLBodyElement *iface, BSTR *p)
-- 
1.5.4.3


--------------010206070001050901030101--



More information about the wine-patches mailing list