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

(cherry picked from commit f86ed3ffef)
This commit is contained in:
Armin Novak 2015-01-15 16:01:57 +01:00 committed by Bernhard Miklautz
parent 41313e6d70
commit 1fdf05da3f

View File

@ -919,8 +919,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;
}