ntdll: Make sure unix_name is zero terminated (valgrind).
In nt_to_unix_file_name_no_root. Signed-off-by: Rémi Bernon <rbernon@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
e01ad1d275
commit
b3f6f21d01
|
@ -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 */
|
if (prefix_len == name_len) /* no subdir, plain DOS device */
|
||||||
{
|
{
|
||||||
|
unix_name[pos + ret] = 0;
|
||||||
*unix_name_ret = unix_name;
|
*unix_name_ret = unix_name;
|
||||||
return get_dos_device( unix_name_ret, pos );
|
return get_dos_device( unix_name_ret, pos );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue