Commit b3f6f21d authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

ntdll: Make sure unix_name is zero terminated (valgrind).

In nt_to_unix_file_name_no_root. Signed-off-by: 's avatarRémi Bernon <rbernon@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent e01ad1d2
......@@ -3290,6 +3290,7 @@ static NTSTATUS nt_to_unix_file_name_no_root( const UNICODE_STRING *nameW, char
if (prefix_len == name_len) /* no subdir, plain DOS device */
{
unix_name[pos + ret] = 0;
*unix_name_ret = unix_name;
return get_dos_device( unix_name_ret, pos );
}
......
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