command line: fix --version

In command line detection status (return) values were ignored therefore
--version wasn't recognized properly and help was printed
This commit is contained in:
Bernhard Miklautz 2014-09-16 22:51:01 +02:00
parent 06e81a1d9b
commit 1fb028fc9f

View File

@ -1090,6 +1090,9 @@ BOOL freerdp_client_detect_command_line(int argc, char** argv, DWORD* flags)
*flags |= COMMAND_LINE_SIGIL_DASH | COMMAND_LINE_SIGIL_DOUBLE_DASH;
*flags |= COMMAND_LINE_SIGIL_ENABLE_DISABLE;
if (posix_cli_status <= COMMAND_LINE_STATUS_PRINT)
return compatibility;
if (windows_cli_count >= posix_cli_count)
{
*flags = COMMAND_LINE_SEPARATOR_COLON;