Commit acae71dd authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Fixed IHTMLTxtRange::get_text implementation with no nsrange associated.

parent 271049ca
......@@ -903,12 +903,14 @@ static HRESULT WINAPI HTMLTxtRange_get_text(IHTMLTxtRange *iface, BSTR *p)
TRACE("(%p)->(%p)\n", This, p);
*p = NULL;
if(!This->nsrange)
return S_OK;
wstrbuf_init(&buf);
range_to_string(This, &buf);
if(buf.buf)
*p = SysAllocString(buf.buf);
else
*p = NULL;
wstrbuf_finish(&buf);
TRACE("ret %s\n", debugstr_w(*p));
......
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