Fix a braino.

This commit is contained in:
Tor Lillqvist
2004-12-12 22:22:36 +00:00
parent f68df9e0ae
commit f2cddc00a3

View File

@@ -771,7 +771,7 @@ gtk_file_system_win32_parse (GtkFileSystem *file_system,
else if (g_ascii_isalpha (str[0]) &&
str[1] == ':' &&
G_IS_DIR_SEPARATOR (str[2]))
folder_part = g_strdup_printf ("%c:" G_DIR_SEPARATOR_S, str[0]);
folder_part = g_strndup (str, last_slash - str + 1);
else
folder_part = g_strndup (str, last_slash - str);
@@ -1492,8 +1492,6 @@ filename_is_drive_root (const char *filename)
{
guint len = strlen (filename);
/* accept both forms */
return (len == 3 && filename[1] == ':' && G_IS_DIR_SEPARATOR (filename[2]));
}