[Wine-patches] mountmgr.sys: Detect links to unc as network drives (eterbug #4191).

Alexander Morozov amorozov на etersoft.ru
Пт Дек 11 16:12:00 MSK 2009


----------- следующая часть -----------
From 97cf68623461ea642c4f42f2099482cead15e200 Mon Sep 17 00:00:00 2001
From: Alexander Morozov <amorozov на etersoft.ru>
Date: Mon, 7 Dec 2009 21:06:04 +0300
Subject: [PATCH] mountmgr.sys: Detect links to unc as network drives (eterbug #4191).

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

diff --git a/dlls/mountmgr.sys/device.c b/dlls/mountmgr.sys/device.c
index 5a0f707..4764bcb 100644
--- a/dlls/mountmgr.sys/device.c
+++ b/dlls/mountmgr.sys/device.c
@@ -641,6 +641,8 @@ static void create_drive_devices(void)
         device = read_symlink( path );
 
         drive_type = i < 2 ? DEVICE_FLOPPY : DEVICE_HARDDISK_VOL;
+        if (!strncmp( link, "unc/", 4 )) drive_type = DEVICE_NETWORK;
+
         if (drives_key)
         {
             WCHAR buffer[32];
-- 
1.6.4.4



Подробная информация о списке рассылки Wine-patches