Change home directory fallback to "C:\Claws-mail" on Windows.
authorAndrej Kacian <ticho@claws-mail.org>
Sun, 25 Sep 2016 14:22:16 +0000 (16:22 +0200)
committerAndrej Kacian <ticho@claws-mail.org>
Sun, 25 Sep 2016 14:22:16 +0000 (16:22 +0200)
It is unlikely ever to be used, since CSIDL_APPDATA special
folder is guaranteed to be defined, but still...

src/common/utils.c

index 053a0b0..ad67d3c 100644 (file)
@@ -1792,7 +1792,7 @@ const gchar *get_home_dir(void)
                if (w32_shgetfolderpath
                            (NULL, CSIDL_APPDATA|CSIDL_FLAG_CREATE,
                             NULL, 0, home_dir_utf16) < 0)
-                               strcpy (home_dir_utf16, "C:\\Sylpheed");
+                               strcpy (home_dir_utf16, "C:\\Claws Mail");
                home_dir_utf8 = g_utf16_to_utf8 ((const gunichar *)home_dir_utf16, -1, NULL, NULL, NULL);
        }
        return home_dir_utf8;