From c78e31e4517cdd5d4875ebf5eed87076bd90f7db Mon Sep 17 00:00:00 2001 From: Martin Fleisz Date: Fri, 13 Nov 2020 11:46:06 +0100 Subject: [PATCH] channel/rdpdr: Fix hotplug for drive redirection on Windows The path was incorrectly cut of after the drive letter causing hot plugged drives to show up empty and disconnecting the client if the device was removed later on. --- channels/rdpdr/client/rdpdr_main.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/channels/rdpdr/client/rdpdr_main.c b/channels/rdpdr/client/rdpdr_main.c index 2a479932c..23693ec75 100644 --- a/channels/rdpdr/client/rdpdr_main.c +++ b/channels/rdpdr/client/rdpdr_main.c @@ -204,7 +204,6 @@ LRESULT CALLBACK hotplug_proc(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam) drive.Type = RDPDR_DTYP_FILESYSTEM; drive.Path = drive_path; - drive_path[1] = '\0'; drive.automount = TRUE; drive.Name = drive_name; devman_load_device_service(rdpdr->devman, @@ -580,7 +579,6 @@ static DWORD WINAPI drive_hotplug_thread_func(LPVOID arg) #else - static const char* automountLocations[] = { "/run/user/%lu/gvfs", "/run/media/%s", "/media/%s", "/media", "/mnt" };