From c627e2196f24b84093c1ed67f9c5bc525c0f0078 Mon Sep 17 00:00:00 2001 From: akallabeth Date: Thu, 14 Oct 2021 09:01:00 +0200 Subject: [PATCH] Improved warning for removed legacy command line --- client/common/cmdline.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/client/common/cmdline.c b/client/common/cmdline.c index cb9e97d1c..4fef267fe 100644 --- a/client/common/cmdline.c +++ b/client/common/cmdline.c @@ -1359,6 +1359,11 @@ static BOOL freerdp_client_detect_command_line(int argc, char** argv, DWORD* fla WLog_DBG(TAG, "windows: %d/%d posix: %d/%d", windows_cli_status, windows_cli_count, posix_cli_status, posix_cli_count); + if ((posix_cli_count == 0) && (windows_cli_count == 0)) + { + if ((posix_cli_status == COMMAND_LINE_ERROR) && (windows_cli_status == COMMAND_LINE_ERROR)) + return TRUE; + } return FALSE; } @@ -1578,6 +1583,7 @@ int freerdp_client_settings_parse_command_line_arguments(rdpSettings* settings, if (compatibility) { WLog_WARN(TAG, "Unsupported command line syntax!"); + WLog_WARN(TAG, "FreeRDP 1.0 style syntax was dropped with version 3!"); return -1; } else