mirror of
https://github.com/FreeRDP/FreeRDP.git
synced 2024-12-03 14:53:49 +08:00
Merge pull request #4973 from Devolutions/fix_drive_redirection
Allow fixed drive redirection (Windows) and fix macos drive duplication.
This commit is contained in:
commit
e980d20e8e
@ -135,7 +135,7 @@ BOOL check_path(char* path)
|
||||
{
|
||||
UINT type = GetDriveTypeA(path);
|
||||
|
||||
if (!(type == DRIVE_REMOVABLE || type == DRIVE_CDROM || type == DRIVE_REMOTE))
|
||||
if (!(type == DRIVE_FIXED ||type == DRIVE_REMOVABLE || type == DRIVE_CDROM || type == DRIVE_REMOTE))
|
||||
return FALSE;
|
||||
|
||||
return GetVolumeInformationA(path, NULL, 0, NULL, NULL, NULL, NULL, 0);
|
||||
@ -439,7 +439,7 @@ static UINT handle_hotplug(rdpdrPlugin* rdpdr)
|
||||
if (device_ext->path == NULL)
|
||||
continue;
|
||||
|
||||
if (ConvertFromUnicode(CP_UTF8, 0, device_ext->path, 0, &path, 0, NULL, FALSE) <= 0)
|
||||
if (ConvertFromUnicode(CP_UTF8, 0, device_ext->path, -1, &path, 0, NULL, FALSE) <= 0)
|
||||
continue;
|
||||
|
||||
/* not plugable device */
|
||||
|
Loading…
Reference in New Issue
Block a user