[1/2] mountmgr: Add a check for "disk" drive type.

Alexander Morozov amorozov at etersoft.ru
Tue Nov 25 10:38:03 CST 2008


After this patch GetDriveType returns DRIVE_REMOVABLE for USB flash drive.
-------------- next part --------------
From 4a5021e7bb0d013ad9c4f1efbd26d13b18e5f991 Mon Sep 17 00:00:00 2001
From: Alexander Morozov <amorozov at etersoft.ru>
Date: Tue, 25 Nov 2008 16:17:12 +0300
Subject: [PATCH] mountmgr: Add a check for "disk" drive type.

---
 dlls/mountmgr.sys/hal.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/mountmgr.sys/hal.c b/dlls/mountmgr.sys/hal.c
index 310b144..df908f9 100644
--- a/dlls/mountmgr.sys/hal.c
+++ b/dlls/mountmgr.sys/hal.c
@@ -134,6 +134,7 @@ static void new_device( LibHalContext *ctx, const char *udi )
 
     if (type && !strcmp( type, "cdrom" )) drive_type = DEVICE_CDROM;
     else if (type && !strcmp( type, "floppy" )) drive_type = DEVICE_FLOPPY;
+    else if (type && !strcmp( type, "disk" )) drive_type = DEVICE_HARDDISK;
     else drive_type = DEVICE_UNKNOWN;
 
     add_dos_device( -1, udi, device, mount_point, drive_type );
-- 
1.6.0.2.GIT



More information about the wine-patches mailing list