msxml: Always return a string in get_text.

This commit is contained in:
Alistair Leslie-Hughes 2007-11-20 21:31:43 +11:00 committed by Alexandre Julliard
parent 9845a9ced4
commit c443674d13

View File

@ -564,7 +564,10 @@ static HRESULT WINAPI xmlnode_get_text(
default:
FIXME("Unhandled node type %d\n", This->node->type);
}
/* Always return a string. */
if (!str) str = SysAllocStringLen( NULL, 0 );
TRACE("%p %s\n", This, debugstr_w(str) );
*text = str;