Alexandre Julliard : msxml3/tests: Use the global wine_dbgstr_w instead of a local variant.

Alexandre Julliard julliard at winehq.org
Wed Aug 19 11:32:25 CDT 2009


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

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Wed Aug 19 13:36:55 2009 +0200

msxml3/tests: Use the global wine_dbgstr_w instead of a local variant.

---

 dlls/msxml3/tests/saxreader.c |    9 +--------
 1 files changed, 1 insertions(+), 8 deletions(-)

diff --git a/dlls/msxml3/tests/saxreader.c b/dlls/msxml3/tests/saxreader.c
index 426fe36..dd0e42c 100644
--- a/dlls/msxml3/tests/saxreader.c
+++ b/dlls/msxml3/tests/saxreader.c
@@ -117,13 +117,6 @@ static content_handler_test contentHandlerTest2[] = {
 static content_handler_test *expectCall;
 static ISAXLocator *locator;
 
-static const char *debugstr_wn(const WCHAR *szStr, int len)
-{
-    static char buf[1024];
-    WideCharToMultiByte(CP_ACP, 0, szStr, len, buf, sizeof(buf), NULL, NULL);
-    return buf;
-}
-
 static void test_saxstr(unsigned line, const WCHAR *szStr, int nStr, const char *szTest)
 {
     WCHAR buf[1024];
@@ -142,7 +135,7 @@ static void test_saxstr(unsigned line, const WCHAR *szStr, int nStr, const char
 
     MultiByteToWideChar(CP_ACP, 0, szTest, -1, buf, sizeof(buf)/sizeof(WCHAR));
     ok_(__FILE__,line) (!memcmp(szStr, buf, len*sizeof(WCHAR)), "unexpected szStr %s, expected %s\n",
-                        debugstr_wn(szStr, nStr), szTest);
+                        wine_dbgstr_wn(szStr, nStr), szTest);
 }
 
 static BOOL test_expect_call(CH id)




More information about the wine-cvs mailing list