Various fixes for mingw

This commit is contained in:
Patrick Griffis
2018-03-05 19:25:08 -05:00
parent 9b8a7eaa01
commit e9b9ff9f38
13 changed files with 61 additions and 33 deletions

View File

@@ -142,7 +142,7 @@ fe_args (int argc, char *argv[])
{
if (strstr (error->message, "--help-all") != NULL)
{
buffer = g_strdup_printf (g_option_context_get_help (context, FALSE, NULL));
buffer = g_option_context_get_help (context, FALSE, NULL);
gtk_init (&argc, &argv);
create_msg_dialog ("Long Help", buffer);
g_free (buffer);
@@ -150,7 +150,7 @@ fe_args (int argc, char *argv[])
}
else if (strstr (error->message, "--help") != NULL || strstr (error->message, "-?") != NULL)
{
buffer = g_strdup_printf (g_option_context_get_help (context, TRUE, NULL));
buffer = g_option_context_get_help (context, TRUE, NULL);
gtk_init (&argc, &argv);
create_msg_dialog ("Help", buffer);
g_free (buffer);