Commit 5ab440e3 authored by H. Verbeet's avatar H. Verbeet Committed by Alexandre Julliard

mountmgr: Include the terminating NULL in mount ids.

Some "protection" schemes expect these to be at least 2 bytes long.
parent 040c33de
......@@ -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 );
......
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