Commit 7f0490e3 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

If we have a drive pointing to /, we must not remove the final / or we

get the current directory doubled.
parent aa109490
......@@ -1217,7 +1217,15 @@ static DWORD DOSFS_DoGetFullPathName( LPCSTR name, DWORD len, LPSTR result,
FIXME("internal: error getting DOS Drive Root\n");
return 0;
}
p= full_name.long_name +strlen(root);
if (!strcmp(root,"/"))
{
/* we have just the last / and we need it. */
p= full_name.long_name;
}
else
{
p= full_name.long_name +strlen(root);
}
/* append long name (= unix name) to drive */
lstrcpynA(full_name.short_name+2,p,MAX_PATHNAME_LEN-3);
/* append name to treat */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment