fix check args count for 'parallel' cmd

This commit is contained in:
Maks Naumov 2014-04-08 20:23:02 +03:00
parent 5aa64a08b0
commit 1162b37602

View File

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