mountmgr: Include the terminating NULL in mount ids.
Some "protection" schemes expect these to be at least 2 bytes long.
This commit is contained in:
parent
040c33de5a
commit
5ab440e398
|
@ -423,7 +423,7 @@ static void create_drive_mount_points( DRIVER_OBJECT *driver )
|
|||
{
|
||||
*p = 'a' + i;
|
||||
if (!(link = read_symlink( buffer ))) continue;
|
||||
add_mount_point( driver, DRIVE_FIXED, i, link, strlen(link) );
|
||||
add_mount_point( driver, DRIVE_FIXED, i, link, strlen(link) + 1 );
|
||||
RtlFreeHeap( GetProcessHeap(), 0, link );
|
||||
}
|
||||
RtlFreeHeap( GetProcessHeap(), 0, buffer );
|
||||
|
|
Loading…
Reference in New Issue