From 5ab440e3987542b57ad1075451cbd256aec5b6b7 Mon Sep 17 00:00:00 2001 From: "H. Verbeet" Date: Wed, 20 Aug 2008 22:46:10 +0200 Subject: [PATCH] mountmgr: Include the terminating NULL in mount ids. Some "protection" schemes expect these to be at least 2 bytes long. --- dlls/mountmgr.sys/mountmgr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/mountmgr.sys/mountmgr.c b/dlls/mountmgr.sys/mountmgr.c index 73e25548cf..b9e96dcb5e 100644 --- a/dlls/mountmgr.sys/mountmgr.c +++ b/dlls/mountmgr.sys/mountmgr.c @@ -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 );