mshtml: Return NULL instead of empty string in get_node_text.
Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
ea7825edfa
commit
386042fbdf
|
@ -535,7 +535,7 @@ HRESULT get_node_text(HTMLDOMNode *node, BSTR *ret)
|
|||
if (!wstrbuf_init(&buf))
|
||||
return E_OUTOFMEMORY;
|
||||
wstrbuf_append_node_rec(&buf, node->nsnode);
|
||||
if(buf.buf) {
|
||||
if(buf.buf && *buf.buf) {
|
||||
*ret = SysAllocString(buf.buf);
|
||||
if(!*ret)
|
||||
hres = E_OUTOFMEMORY;
|
||||
|
|
Loading…
Reference in New Issue