--- a/win32.c Fri Oct 28 00:09:59 2005 +0000
+++ b/win32.c Fri Oct 28 00:18:57 2005 +0000
@@ -919,6 +919,9 @@
case FIOS_TYPE_DIRECT:
sprintf(path, "%s\\", item->name);
+ s = strrchr(path, '\\');
+ if (s[1] == '\0') s[0] = '\0'; // strip trailing slash
+
break;
case FIOS_TYPE_FILE: