mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 08:54:38 +09:00
Fixed windows command line
freerdp_detect_windows_style_command_line_syntax returns negative values in error but also in help and version case... oh boy
This commit is contained in:
@@ -1081,8 +1081,9 @@ BOOL freerdp_client_detect_command_line(int argc, char** argv, DWORD* flags)
|
||||
return compatibility;
|
||||
|
||||
/* Check, if this may be windows style syntax... */
|
||||
if (windows_cli_count && (windows_cli_count >= posix_cli_count))
|
||||
if (windows_cli_count && (windows_cli_count >= posix_cli_count) || (windows_cli_status <= COMMAND_LINE_STATUS_PRINT))
|
||||
{
|
||||
windows_cli_count = 1;
|
||||
*flags = COMMAND_LINE_SEPARATOR_COLON;
|
||||
*flags |= COMMAND_LINE_SIGIL_SLASH | COMMAND_LINE_SIGIL_PLUS_MINUS;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user