Commit 87e2bb3e authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

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

parent 91d07f69
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment