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

get the current directory doubled.
oldstable
Marcus Meissner 2000-10-23 00:37:06 +00:00 committed by Alexandre Julliard
parent aa10949064
commit 7f0490e3f3
1 changed files with 9 additions and 1 deletions

View File

@ -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 */