Fixed freerdp_device_clone for serial devices

This commit is contained in:
Armin Novak 2021-10-18 15:30:41 +02:00 committed by akallabeth
parent ceee946e0b
commit 5037659859

View File

@ -500,6 +500,14 @@ RDPDR_DEVICE* freerdp_device_clone(const RDPDR_DEVICE* device)
if (!copy.serial->Driver)
goto fail;
}
if (copy.serial->Permissive)
{
copy.serial->Permissive = _strdup(src.serial->Permissive);
if (!copy.serial->Permissive)
goto fail;
}
}
break;