msi: Reset the folder's resolved target before setting the target in CostFinalize.

This commit is contained in:
James Hawkins 2007-05-01 03:19:50 -05:00 committed by Alexandre Julliard
parent d8586e164f
commit baad888766
1 changed files with 8 additions and 0 deletions

View File

@ -1918,9 +1918,17 @@ static UINT ITERATE_CostFinalizeDirectories(MSIRECORD *row, LPVOID param)
MSIPACKAGE *package = (MSIPACKAGE*)param;
LPCWSTR name;
LPWSTR path;
MSIFOLDER *f;
name = MSI_RecordGetString(row,1);
f = get_loaded_folder(package, name);
if (!f) return ERROR_SUCCESS;
/* reset the ResolvedTarget */
msi_free(f->ResolvedTarget);
f->ResolvedTarget = NULL;
/* This helper function now does ALL the work */
TRACE("Dir %s ...\n",debugstr_w(name));
path = resolve_folder(package,name,FALSE,TRUE,TRUE,NULL);