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@winehq.org>
This commit is contained in:
Alexandre Julliard 2021-04-25 16:38:08 +02:00
parent c0af8b7372
commit df1c03a007
1 changed files with 1 additions and 1 deletions

View File

@ -3604,7 +3604,7 @@ NTSTATUS get_full_path( const WCHAR *name, const WCHAR *curdir, WCHAR **path )
} }
else if (IS_SEPARATOR(name[0])) /* absolute path */ else if (IS_SEPARATOR(name[0])) /* absolute path */
{ {
root[4] = curdir[0]; root[4] = curdir[4];
prefix = root; prefix = root;
} }
else if (name[0] && name[1] == ':') /* drive letter */ else if (name[0] && name[1] == ':') /* drive letter */