diff --git a/src/gtk/common/config.c b/src/gtk/common/config.c index e707256..53a5ce8 100644 --- a/src/gtk/common/config.c +++ b/src/gtk/common/config.c @@ -43,12 +43,12 @@ #ifdef WIN_REGISTRY_ENABLED - static const gchar *registry_path = "SOFTWARE\\"PACKAGE_NAME; + static const gchar *registry_path = "SOFTWARE\\"; #else static GKeyFile * program_config = NULL; - static const gchar * mask = "%s" G_DIR_SEPARATOR_S PACKAGE_NAME ".conf"; + static const gchar * mask = "%s" G_DIR_SEPARATOR_S "%s.conf"; #endif // WIN_REGISTRY_ENABLED @@ -87,7 +87,7 @@ gchar * get_last_error_msg(void) { static HKEY predefined[] = { HKEY_CURRENT_USER, HKEY_USERS, HKEY_LOCAL_MACHINE }; int f; - gchar * path = g_strdup_printf("%s\\%s",registry_path,group); + gchar * path = g_strdup_printf("%s\\%s\\%s",registry_path,g_get_application_name(),group); for(f=0;f