mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 05:00:30 +00:00
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 a new issue