Commit a64945ba authored by James Hawkins's avatar James Hawkins Committed by Alexandre Julliard

msi: Use mi->source if the source is not a full path.

parent d208ad82
......@@ -483,6 +483,9 @@ static UINT download_remote_cabinet(MSIPACKAGE *package, struct media_info *mi)
*(ptr + 1) = '\0';
ptr = strrchrW(mi->source, '\\');
if (!ptr)
ptr = mi->source;
src = msi_realloc(src, (lstrlenW(src) + lstrlenW(ptr)) * sizeof(WCHAR));
if (!src)
return ERROR_OUTOFMEMORY;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment