From df1c03a007707bc27c2041395bef020d5a37f0a4 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Sun, 25 Apr 2021 16:38:08 +0200 Subject: [PATCH] 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 --- 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 */ -- 2.11.4.GIT