common: Fix parsing of devicestoredirect setting in rdp files

If devicestoredirect was found in an rdp file we incorrectly enabled
drive redirection (which has nothing to do with device redirection).
This commit is contained in:
Martin Fleisz 2019-07-29 16:37:06 +02:00 committed by akallabeth
parent e873e4f004
commit c8d0d50610

View File

@ -1562,7 +1562,7 @@ BOOL freerdp_client_populate_settings_from_rdp_file(rdpFile* file, rdpSettings*
* devicestoredirect:s:USB\VID_04A9&PID_30C1\6&4BD985D&0&2;,DynamicDevices
*
*/
if (!freerdp_settings_set_bool(settings, FreeRDP_RedirectDrives, TRUE))
if (!freerdp_settings_set_bool(settings, FreeRDP_DeviceRedirection, TRUE))
return FALSE;
}