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:
H. Verbeet 2008-08-20 22:46:10 +02:00 committed by Alexandre Julliard
parent 040c33de5a
commit 5ab440e398
1 changed files with 1 additions and 1 deletions

View File

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