Commit 5f18bfca authored by Robert Reif's avatar Robert Reif Committed by Alexandre Julliard

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

parent 8aecf251
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment