From cada2709a29a19d5c1231cfd1fbdf4b1d3daf565 Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Wed, 20 Aug 2008 22:46:10 +0200 Subject: [PATCH 3/3] 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 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/mountmgr.sys/mountmgr.c b/dlls/mountmgr.sys/mountmgr.c index 73e2554..b9e96dc 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 ); -- 1.5.6.4