forked from Mirrors/wine-wine
If we have a drive pointing to /, we must not remove the final / or we
get the current directory doubled.oldstable
parent
aa10949064
commit
7f0490e3f3
|
@ -1217,7 +1217,15 @@ static DWORD DOSFS_DoGetFullPathName( LPCSTR name, DWORD len, LPSTR result,
|
|||
FIXME("internal: error getting DOS Drive Root\n");
|
||||
return 0;
|
||||
}
|
||||
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 */
|
||||
|
|
Loading…
Reference in New Issue