mshtml: Return NULL for empty results in get_style_attr.

This commit is contained in:
Jacek Caban 2007-09-19 12:41:27 +02:00 committed by Alexandre Julliard
parent a95bfede8a
commit 13bb3dd8ee
1 changed files with 1 additions and 1 deletions

View File

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