Alexandre Julliard : ntdll: Fix drive letter of current directory in get_full_path().

Alexandre Julliard julliard at winehq.org
Mon Apr 26 15:51:31 CDT 2021


Module: wine
Branch: master
Commit: df1c03a007707bc27c2041395bef020d5a37f0a4
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=df1c03a007707bc27c2041395bef020d5a37f0a4

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Sun Apr 25 16:38:08 2021 +0200

ntdll: Fix drive letter of current directory in get_full_path().

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=51057
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/ntdll/unix/file.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/ntdll/unix/file.c b/dlls/ntdll/unix/file.c
index e32de57190b..2f18325fb90 100644
--- a/dlls/ntdll/unix/file.c
+++ b/dlls/ntdll/unix/file.c
@@ -3604,7 +3604,7 @@ NTSTATUS get_full_path( const WCHAR *name, const WCHAR *curdir, WCHAR **path )
     }
     else if (IS_SEPARATOR(name[0]))  /* absolute path */
     {
-        root[4] = curdir[0];
+        root[4] = curdir[4];
         prefix = root;
     }
     else if (name[0] && name[1] == ':')  /* drive letter */




More information about the wine-cvs mailing list