Commit 45a62d53 authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

msi: Restrict the match on files from cabinets to files that have not been installed.

parent 72550c9d
......@@ -253,7 +253,7 @@ static MSIFILE *find_file( MSIPACKAGE *package, const WCHAR *filename )
LIST_FOR_EACH_ENTRY( file, &package->files, MSIFILE, entry )
{
if (!strcmpiW( filename, file->File )) return file;
if (file->state != msifs_installed && !strcmpiW( filename, file->File )) return file;
}
return NULL;
}
......
......@@ -428,7 +428,7 @@ static INT_PTR cabinet_copy_file(FDINOTIFICATIONTYPE fdint,
goto done;
}
TRACE("extracting %s\n", debugstr_w(path));
TRACE("extracting %s -> %s\n", debugstr_w(data->curfile), debugstr_w(path));
attrs = attrs & (FILE_ATTRIBUTE_READONLY|FILE_ATTRIBUTE_HIDDEN|FILE_ATTRIBUTE_SYSTEM);
if (!attrs) attrs = FILE_ATTRIBUTE_NORMAL;
......
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