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

oldstable
Martin Storsjo 2014-05-15 15:25:04 +03:00 committed by Alexandre Julliard
parent 9677454f7d
commit 114444ca9c
1 changed files with 1 additions and 1 deletions

View File

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