[PATCH] msxml3: always return a string in get_text
Alistair Leslie-Hughes
leslie_alistair at hotmail.com
Tue Nov 20 04:31:43 CST 2007
---
dlls/msxml3/node.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/dlls/msxml3/node.c b/dlls/msxml3/node.c
index 298deff..d3e7fc4 100644
--- a/dlls/msxml3/node.c
+++ b/dlls/msxml3/node.c
@@ -564,6 +564,13 @@ static HRESULT WINAPI xmlnode_get_text(
default:
FIXME("Unhandled node type %d\n", This->node->type);
}
+
+ if(!str)
+ {
+ /* Always return a string. */
+ WCHAR pEmpty[] = {0};
+ str = SysAllocString(pEmpty);
+ }
TRACE("%p %s\n", This, debugstr_w(str) );
*text = str;
--
1.5.0.6
--------------000001040402060003050603--
More information about the wine-patches
mailing list