Commit 13bb3dd8 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Return NULL for empty results in get_style_attr.

parent a95bfede
......@@ -91,7 +91,7 @@ static HRESULT get_style_attr(HTMLStyle *This, LPCWSTR name, BSTR *p)
ERR("SetProperty failed: %08x\n", nsres);
nsAString_GetData(&str_value, &value, NULL);
*p = SysAllocString(value);
*p = *value ? SysAllocString(value) : NULL;
nsAString_Finish(&str_name);
nsAString_Finish(&str_value);
......
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