mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 20:59:54 +00:00
msi: Restrict the match on files from cabinets to files that have not been installed.
This commit is contained in:
parent
72550c9d3a
commit
45a62d53b6
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user