Jacek Caban : mshtml: Return NULL instead of empty string in IHTMLBodyElement::get_background.

Alexandre Julliard julliard at winehq.org
Wed Dec 5 06:56:38 CST 2007


Module: wine
Branch: master
Commit: 87e2bb3e637a2d1a7639c71c8ac5ba75df6b3490
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=87e2bb3e637a2d1a7639c71c8ac5ba75df6b3490

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Wed Dec  5 02:04:43 2007 +0100

mshtml: Return NULL instead of empty string in IHTMLBodyElement::get_background.

---

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

diff --git a/dlls/mshtml/htmlbody.c b/dlls/mshtml/htmlbody.c
index e3fb732..c3a930c 100644
--- a/dlls/mshtml/htmlbody.c
+++ b/dlls/mshtml/htmlbody.c
@@ -127,7 +127,7 @@ static HRESULT WINAPI HTMLBodyElement_get_background(IHTMLBodyElement *iface, BS
     if(NS_SUCCEEDED(nsres)) {
         const PRUnichar *background;
         nsAString_GetData(&background_str, &background, NULL);
-        *p = SysAllocString(background);
+        *p = *background ? SysAllocString(background) : NULL;
     }else {
         ERR("GetBackground failed: %08x\n", nsres);
         *p = NULL;




More information about the wine-cvs mailing list