(svn r2190) - Fix: [1179424] '.. (Parent directory)' does not show up in the root-directory anymore; win32 only (mgasterix)
authordarkvater
Wed, 13 Apr 2005 13:09:25 +0000
changeset 1686 37f64f8b0641
parent 1685 46783dea9b44
child 1687 521050dcd91e
(svn r2190) - Fix: [1179424] '.. (Parent directory)' does not show up in the root-directory anymore; win32 only (mgasterix)
win32.c
--- a/win32.c	Tue Apr 12 10:31:26 2005 +0000
+++ b/win32.c	Wed Apr 13 13:09:25 2005 +0000
@@ -1815,12 +1815,13 @@
 		case FIOS_TYPE_PARENT:
 			s = strrchr(path, '\\');
 			if (s != NULL) *s = '\0';
+			if (path[2] == '\0' ) strcat(path, "\\");
 			break;
 
 		case FIOS_TYPE_DIR:
 			s = strchr(item->name, '\\');
 			if (s != NULL) *s = '\0';
-			if (path[3]!= '\0' ) strcat(path, "\\");
+			if (path[3] != '\0' ) strcat(path, "\\");
 			strcat(path, item->name);
 			break;