Printing help on invalid command line again.
authorArmin Novak <armin.novak@thincast.com>
Tue, 9 Feb 2016 08:36:00 +0000 (09:36 +0100)
committerArmin Novak <armin.novak@thincast.com>
Tue, 9 Feb 2016 08:36:00 +0000 (09:36 +0100)
client/Windows/cli/wfreerdp.c

index b9a8a54..dd9ea55 100644 (file)
@@ -97,11 +97,10 @@ INT WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine
 
        status = freerdp_client_settings_parse_command_line(settings, argc, argv, FALSE);
        if (status)
+    {
+        freerdp_client_settings_command_line_status_print(settings, status, argc, argv);
                goto out;
-
-       status = freerdp_client_settings_command_line_status_print(settings, status, context->argc, context->argv);
-       if (status)
-               goto out;
+    }
 
        if (freerdp_client_start(context) != 0)
                goto out;