Merge pull request #5558 from akallabeth/drive_hotplug_name

Allow /drive:<name>,* syntax.:wq
This commit is contained in:
Martin Fleisz 2019-08-30 14:06:18 +02:00 committed by GitHub
commit 875198c4df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -125,9 +125,6 @@ static BOOL freerdp_client_add_drive(rdpSettings* settings, const char* path, co
BOOL isSpecial = FALSE; BOOL isSpecial = FALSE;
BOOL isPath = freerdp_path_valid(path, &isSpecial); BOOL isPath = freerdp_path_valid(path, &isSpecial);
if (isSpecial && name)
goto fail;
if ((!isPath && !isSpecial) || !(drive->Path = _strdup(path))) if ((!isPath && !isSpecial) || !(drive->Path = _strdup(path)))
goto fail; goto fail;
} }