From 7f0490e3f3bdd31b1621f6dfd8228bf80c6e2deb Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Mon, 23 Oct 2000 00:37:06 +0000 Subject: [PATCH] If we have a drive pointing to /, we must not remove the final / or we get the current directory doubled. --- files/dos_fs.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/files/dos_fs.c b/files/dos_fs.c index 6db2181474e..f0ab2f40f9f 100644 --- a/files/dos_fs.c +++ b/files/dos_fs.c @@ -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 */