Alexandre Julliard : ntdll: Actually return the mount point in get_device_mount_point on Mac OS.

Alexandre Julliard julliard at winehq.org
Wed Sep 4 15:08:32 CDT 2013


Module: wine
Branch: master
Commit: 6666614a1931afedd212d734b4b3cd01fd20c2fb
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=6666614a1931afedd212d734b4b3cd01fd20c2fb

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Wed Sep  4 16:28:10 2013 +0200

ntdll: Actually return the mount point in get_device_mount_point on Mac OS.

---

 dlls/ntdll/directory.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/ntdll/directory.c b/dlls/ntdll/directory.c
index f65cc9f..4af3456 100644
--- a/dlls/ntdll/directory.c
+++ b/dlls/ntdll/directory.c
@@ -781,8 +781,8 @@ static char *get_device_mount_point( dev_t dev )
         if (stat( entry[i].f_mntfromname, &st ) == -1) continue;
         if (S_ISBLK(st.st_mode) && st.st_rdev == dev)
         {
-            ret = RtlAllocateHeap( GetProcessHeap(), 0, strlen(entry[i].f_mntfromname) + 1 );
-            if (ret) strcpy( ret, entry[i].f_mntfromname );
+            ret = RtlAllocateHeap( GetProcessHeap(), 0, strlen(entry[i].f_mntonname) + 1 );
+            if (ret) strcpy( ret, entry[i].f_mntonname );
             break;
         }
     }




More information about the wine-cvs mailing list