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

View file

@ -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;
}