Fixed Drive hotplug detection
@@ -450,6 +450,7 @@ static UINT handle_hotplug(rdpdrPlugin* rdpdr)
break;
}
}
+
free(path);
if (!dev_found)
@@ -1059,7 +1060,11 @@ static UINT rdpdr_process_connect(rdpdrPlugin* rdpdr)
{
device = settings->DeviceArray[index];
- if (device->Name && (strcmp(device->Name, "*") == 0))
+ if (device->Type == RDPDR_DTYP_FILESYSTEM)
+ {
+ RDPDR_DRIVE* drive = (RDPDR_DRIVE*)device;
+
+ if (drive->Path && (strcmp(drive->Path, "*") == 0))
{
first_hotplug(rdpdr);
@@ -1072,6 +1077,7 @@ static UINT rdpdr_process_connect(rdpdrPlugin* rdpdr)
continue;
}
+ }
if ((error = devman_load_device_service(rdpdr->devman, device,
rdpdr->rdpcontext)))
