Fix a braino.
This commit is contained in:
@@ -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]));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user