Merge pull request #1776 from maksqwe/fix_console_parallel_cmd_args_parse

fix check args count for 'parallel' cmd
This commit is contained in:
Marc-André Moreau 2014-04-08 23:56:35 -04:00
commit aa466a85e0

View File

@ -407,7 +407,7 @@ int freerdp_client_add_device_channel(rdpSettings* settings, int count, char** p
if (count > 1)
parallel->Name = _strdup(params[1]);
if (count > 1)
if (count > 2)
parallel->Path = _strdup(params[2]);
freerdp_device_collection_add(settings, (RDPDR_DEVICE*) parallel);