Commit 114444ca authored by Martin Storsjo's avatar Martin Storsjo Committed by Alexandre Julliard

ntdll: Don't write uninitialized bytes at the end of filenames.

parent 9677454f
......@@ -1484,7 +1484,7 @@ static union file_directory_info *append_entry( void *info_ptr, IO_STATUS_BLOCK
assert(0);
return NULL;
}
memcpy( filename, long_nameW, total_len - ((char *)filename - (char *)info) );
memcpy( filename, long_nameW, long_len * sizeof(WCHAR) );
io->Information += total_len;
return info;
}
......
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