Fix absolute path detection in mh_create_tree() on Windows.
authorAndrej Kacian <ticho@claws-mail.org>
Sat, 24 Sep 2016 22:19:50 +0000 (00:19 +0200)
committerAndrej Kacian <ticho@claws-mail.org>
Sat, 24 Sep 2016 22:19:50 +0000 (00:19 +0200)
src/mh.c

index 3798c64..a54de02 100644 (file)
--- a/src/mh.c
+++ b/src/mh.c
@@ -792,7 +792,7 @@ static gint mh_create_tree(Folder *folder)
 #ifdef G_OS_UNIX
        if (*rootpath == '/') {
 #elif defined G_OS_WIN32
-       if (g_ascii_isalpha(*rootpath) && !strncmp(rootpath + 1, "\:", 2)) {
+       if (g_ascii_isalpha(*rootpath) && !strncmp(rootpath + 1, ":\\", 2)) {
 #endif
                /* Folder path is absolute. */
                rootpath = g_strdup(rootpath);