From 5f18bfca68d0e20df5f1d881d678a7ee753c8bd4 Mon Sep 17 00:00:00 2001 From: Robert Reif Date: Sat, 26 Aug 2006 10:15:27 -0400 Subject: [PATCH] kernel32: Fix TRACE in WideCharToMultiByte to not cause exception with non-null terminated input. --- dlls/kernel/locale.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dlls/kernel/locale.c b/dlls/kernel/locale.c index a1608e2f2ec..7d33a8f40ad 100644 --- a/dlls/kernel/locale.c +++ b/dlls/kernel/locale.c @@ -1662,7 +1662,8 @@ INT WINAPI WideCharToMultiByte( UINT page, DWORD flags, LPCWSTR src, INT srclen, } ret = 0; } - TRACE("cp %d %s -> %s\n", page, debugstr_w(src), debugstr_a(dst)); + TRACE("cp %d %s -> %s, ret = %d\n", + page, debugstr_wn(src, srclen), debugstr_an(dst, ret), ret); return ret; }