H. Verbeet : mountmgr: Include the terminating NULL in mount ids.
Alexandre Julliard
julliard at winehq.org
Thu Aug 21 10:02:17 CDT 2008
Module: wine
Branch: master
Commit: 5ab440e3987542b57ad1075451cbd256aec5b6b7
URL: http://source.winehq.org/git/wine.git/?a=commit;h=5ab440e3987542b57ad1075451cbd256aec5b6b7
Author: H. Verbeet <hverbeet at gmail.com>
Date: Wed Aug 20 22:46:10 2008 +0200
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 );
More information about the wine-cvs
mailing list