mshtml: Return NULL instead of empty string in IHTMLBodyElement::get_background.
This commit is contained in:
parent
91d07f6995
commit
87e2bb3e63
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue