From: Armin Novak Date: Thu, 12 Sep 2019 08:51:55 +0000 (+0200) Subject: Hotplugging only for drive redirection. X-Git-Tag: 2.0.0~339^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6f82ab620422bf503bfd079d0ff787062ed2ec09;p=platform%2Fupstream%2Ffreerdp.git Hotplugging only for drive redirection. --- diff --git a/channels/rdpdr/client/rdpdr_main.c b/channels/rdpdr/client/rdpdr_main.c index fe13dc7..b7e88c0 100644 --- a/channels/rdpdr/client/rdpdr_main.c +++ b/channels/rdpdr/client/rdpdr_main.c @@ -437,6 +437,9 @@ static UINT handle_hotplug(rdpdrPlugin* rdpdr) if (!device_ext || !device_ext->automount) continue; + if (device_ext->device.type != RDPDR_DTYP_FILESYSTEM) + continue; + if (device_ext->path == NULL) continue; @@ -810,7 +813,7 @@ static UINT handle_hotplug(rdpdrPlugin* rdpdr) DEVICE_DRIVE_EXT* device_ext = (DEVICE_DRIVE_EXT*)ListDictionary_GetItemValue( rdpdr->devman->devices, (void*)keys[j]); - if (!device_ext || !device_ext->path || !device_ext->automount) + if (!device_ext || (device_ext->device.type != RDPDR_DTYP_FILESYSTEM) || !device_ext->path || !device_ext->automount) continue; ConvertFromUnicode(CP_UTF8, 0, device_ext->path, -1, &path, 0, NULL, NULL);