From c443674d13117d3aec147f14b920ec0b1ae56325 Mon Sep 17 00:00:00 2001 From: Alistair Leslie-Hughes Date: Tue, 20 Nov 2007 21:31:43 +1100 Subject: [PATCH] msxml: Always return a string in get_text. --- dlls/msxml3/node.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dlls/msxml3/node.c b/dlls/msxml3/node.c index 298deff9816..e52718e4272 100644 --- a/dlls/msxml3/node.c +++ b/dlls/msxml3/node.c @@ -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;