Module: wine Branch: master Commit: 5f18bfca68d0e20df5f1d881d678a7ee753c8bd4 URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=5f18bfca68d0e20df5f1d881...
Author: Robert Reif reif@earthlink.net Date: Sat Aug 26 10:15:27 2006 -0400
kernel32: Fix TRACE in WideCharToMultiByte to not cause exception with non-null terminated input.
---
dlls/kernel/locale.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dlls/kernel/locale.c b/dlls/kernel/locale.c index a1608e2..7d33a8f 100644 --- a/dlls/kernel/locale.c +++ b/dlls/kernel/locale.c @@ -1662,7 +1662,8 @@ INT WINAPI WideCharToMultiByte( UINT pag } 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; }