msi: Free the current filename if we choose to not extract the file.

This commit is contained in:
James Hawkins 2009-12-17 20:00:45 -08:00 committed by Alexandre Julliard
parent 6a7fc50708
commit d9c52bfa70
1 changed files with 5 additions and 0 deletions

View File

@ -334,7 +334,12 @@ static INT_PTR cabinet_copy_file(FDINOTIFICATIONTYPE fdint,
data->curfile = strdupAtoW(pfdin->psz1);
if (!data->cb(data->package, data->curfile, MSICABEXTRACT_BEGINEXTRACT, &path,
&attrs, data->user))
{
/* We're not extracting this file, so free the filename. */
msi_free(data->curfile);
data->curfile = NULL;
goto done;
}
TRACE("extracting %s\n", debugstr_w(path));