If we have a drive pointing to /, we must not remove the final / or we
get the current directory doubled.
diff --git a/files/dos_fs.c b/files/dos_fs.c
index 6db2181..f0ab2f4 100644
--- a/files/dos_fs.c
+++ b/files/dos_fs.c
@@ -1217,7 +1217,15 @@
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 */