[RESEND] mountmgr.sys: implement forced setting of fixed/local disk

Ben Klein shacklein at gmail.com
Thu Jun 4 03:14:56 CDT 2009


define_unix_drive in mountmgr.c includes all cases used in query_unix_drive
except the DRIVE_FIXED == DEVICE_HARDDISK_VOL mapping. This patch fixes 17618
where setting the drive type to "Local disk" in winecfg does not save the
change to the registry.

I've CC'd wine-devel in the hope of getting some feedback this time.
This is the 3rd or 4th time I've submitted this patch.
-------------- next part --------------
From 100c129bbb1a3df3ebb68d52b22c798b6a2150c2 Mon Sep 17 00:00:00 2001
From: Ben Klein <shacklein at gmail.com>
Date: Fri, 6 Mar 2009 00:49:39 +1100
Subject: mountmgr.sys: implement forced setting of fixed/local disk

define_unix_drive in mountmgr.c includes all cases used in query_unix_drive
except the DRIVE_FIXED == DEVICE_HARDDISK_VOL mapping. This patch fixes 17618
where setting the drive type to "Local disk" in winecfg does not save the
change to the registry.
---
 dlls/mountmgr.sys/mountmgr.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/mountmgr.sys/mountmgr.c b/dlls/mountmgr.sys/mountmgr.c
index 00112b9..d2b1515 100644
--- a/dlls/mountmgr.sys/mountmgr.c
+++ b/dlls/mountmgr.sys/mountmgr.c
@@ -264,6 +264,7 @@ static NTSTATUS define_unix_drive( const void *in_buff, SIZE_T insize )
         case DRIVE_REMOTE:    type = DEVICE_NETWORK; break;
         case DRIVE_CDROM:     type = DEVICE_CDROM; break;
         case DRIVE_RAMDISK:   type = DEVICE_RAMDISK; break;
+        case DRIVE_FIXED:     type = DEVICE_HARDDISK_VOL; break;
         }
         return add_dos_device( letter - 'a', NULL, device, mount_point, type );
     }
-- 
1.6.1.3


More information about the wine-devel mailing list