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

oldstable
James Hawkins 2006-11-29 20:30:01 -08:00 committed by Alexandre Julliard
parent d208ad82dd
commit a64945baea
1 changed files with 3 additions and 0 deletions

View File

@ -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;