kernel32: Fix TRACE in WideCharToMultiByte to not cause exception with non-null terminated input.

This commit is contained in:
Robert Reif 2006-08-26 10:15:27 -04:00 committed by Alexandre Julliard
parent 8aecf251df
commit 5f18bfca68
1 changed files with 2 additions and 1 deletions

View File

@ -1662,7 +1662,8 @@ INT WINAPI WideCharToMultiByte( UINT page, DWORD flags, LPCWSTR src, INT srclen,
} }
ret = 0; 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; return ret;
} }