Commit aafe39a8 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

mountmgr: Fill the mountmgr_unix_drive structure even if the buffer is too small…

mountmgr: Fill the mountmgr_unix_drive structure even if the buffer is too small to hold the dynamic strings. kernel32 actually already assumes this. Signed-off-by: 's avatarZebediah Figura <zfigura@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 97e88a56
......@@ -311,6 +311,11 @@ static NTSTATUS query_unix_drive( void *buff, SIZE_T insize,
input = NULL;
output = buff;
output->size = size;
output->letter = letter;
output->type = type;
output->mount_point_offset = 0;
output->device_offset = 0;
if (size > outsize)
{
......@@ -328,9 +333,7 @@ static NTSTATUS query_unix_drive( void *buff, SIZE_T insize,
status = STATUS_MORE_ENTRIES;
goto done;
}
output->size = size;
output->letter = letter;
output->type = type;
ptr = (char *)(output + 1);
if (mount_point)
......
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