fix check args count for 'parallel' cmd
This commit is contained in:
parent
5aa64a08b0
commit
1162b37602
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user