[Wine-patches] mountmgr.sys: Fix problem with dosdevices/c: directory.
Alexander Morozov
=?iso-8859-1?q?amorozov_=CE=C1_etersoft=2Eru?=
Ср Окт 29 20:32:51 MSK 2008
----------- следующая часть -----------
From 98703e71ef2216394cd630cbe104dd09283fdda8 Mon Sep 17 00:00:00 2001
From: Alexander Morozov <amorozov на etersoft.ru>
Date: Wed, 29 Oct 2008 20:30:48 +0300
Subject: [PATCH] mountmgr.sys: Fix problem with dosdevices/c: directory.
---
dlls/mountmgr.sys/device.c | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/dlls/mountmgr.sys/device.c b/dlls/mountmgr.sys/device.c
index 00b59ed..3377563 100644
--- a/dlls/mountmgr.sys/device.c
+++ b/dlls/mountmgr.sys/device.c
@@ -26,6 +26,8 @@
#include <stdarg.h>
#include <stdio.h>
#include <sys/time.h>
+#include <sys/types.h>
+#include <dirent.h>
#include "mountmgr.h"
#include "winreg.h"
@@ -425,7 +427,13 @@ static void create_drive_devices(void)
{
p[0] = 'a' + i;
p[2] = 0;
- if (!(link = read_symlink( path ))) continue;
+ if (!(link = read_symlink( path )))
+ {
+ DIR *dir = opendir( path );
+ if (!dir) continue;
+ link = strdupA( path );
+ closedir( dir );
+ }
p[2] = ':';
device = read_symlink( path );
--
1.5.6.5.GIT
Подробная информация о списке рассылки Wine-patches