[2/3] mountmgr.sys: Remove an artificial limitation for removable drive letters.
Dmitry Timoshkov
dmitry at baikal.ru
Wed Apr 17 22:39:58 CDT 2013
Under Windows removable drives (USB sticks) can have drive letters such
as J: or K:.
---
dlls/mountmgr.sys/device.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/dlls/mountmgr.sys/device.c b/dlls/mountmgr.sys/device.c
index 005ec5e..56fb460 100644
--- a/dlls/mountmgr.sys/device.c
+++ b/dlls/mountmgr.sys/device.c
@@ -562,7 +562,7 @@ static int add_drive( const char *device, enum device_type type )
{
case DEVICE_FLOPPY:
first = 0;
- last = 2;
+ last = 26;
break;
case DEVICE_CDROM:
case DEVICE_DVD:
@@ -657,7 +657,6 @@ static void create_drive_devices(void)
drive_type = j;
break;
}
- if (drive_type == DEVICE_FLOPPY && i >= 2) drive_type = DEVICE_HARDDISK;
}
}
--
1.8.2.1
More information about the wine-patches
mailing list