mshtml: Return NULL instead of empty string in IHTMLSelectElement::get_value.

This commit is contained in:
Jacek Caban 2008-06-24 15:23:12 -05:00 committed by Alexandre Julliard
parent c2759cb80d
commit da8560bbf7
1 changed files with 1 additions and 1 deletions

View File

@ -256,7 +256,7 @@ static HRESULT WINAPI HTMLSelectElement_get_value(IHTMLSelectElement *iface, BST
nsres = nsIDOMHTMLSelectElement_GetValue(This->nsselect, &value_str);
if(NS_SUCCEEDED(nsres)) {
nsAString_GetData(&value_str, &value);
*p = SysAllocString(value);
*p = *value ? SysAllocString(value) : NULL;
}else {
ERR("GetValue failed: %08x\n", nsres);
}