Added support for `file://` urls for rdp files

This commit is contained in:
akallabeth 2020-12-22 10:24:27 +01:00 committed by akallabeth
parent b1ad70c387
commit c865c4eb64
1 changed files with 5 additions and 1 deletions

View File

@ -791,7 +791,11 @@ BOOL freerdp_client_parse_rdp_file_ex(rdpFile* file, const char* name, rdp_file_
FILE* fp = NULL; FILE* fp = NULL;
size_t read_size; size_t read_size;
INT64 file_size; INT64 file_size;
fp = fopen(name, "r"); const char* fname = name;
if (_strnicmp(fname, "file://", 7) == 0)
fname = &name[7];
fp = fopen(fname, "r");
if (!fp) if (!fp)
{ {