mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
[core,settings] fix freerdp_device_collection_add
* Assert usage of DeviceArray, ensure returned values are != NULL if within DeviceCount * Only reset newly allocated DeviceArray members on resize
This commit is contained in:
@@ -1159,6 +1159,7 @@ static UINT rdpdr_process_connect(rdpdrPlugin* rdpdr)
|
||||
{
|
||||
const RDPDR_DEVICE* device =
|
||||
freerdp_settings_get_pointer_array(settings, FreeRDP_DeviceArray, index);
|
||||
WINPR_ASSERT(device);
|
||||
|
||||
if (device->Type == RDPDR_DTYP_FILESYSTEM)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user