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

This commit is contained in:
Jacek Caban 2007-12-05 02:04:43 +01:00 committed by Alexandre Julliard
parent 91d07f6995
commit 87e2bb3e63

View file

@ -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;