Alistair Leslie-Hughes : msxml: Always return a string in get_text.

Alexandre Julliard julliard at winehq.org
Wed Nov 21 07:47:43 CST 2007


Module: wine
Branch: master
Commit: c443674d13117d3aec147f14b920ec0b1ae56325
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=c443674d13117d3aec147f14b920ec0b1ae56325

Author: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Date:   Tue Nov 20 21:31:43 2007 +1100

msxml: Always return a string in get_text.

---

 dlls/msxml3/node.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/dlls/msxml3/node.c b/dlls/msxml3/node.c
index 298deff..e52718e 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;
  




More information about the wine-cvs mailing list