msi: A file that does not have the msidbFileAttributesCompressed bit set should be considered non-compressed.

This commit is contained in:
James Hawkins 2006-08-01 15:10:21 -07:00 committed by Alexandre Julliard
parent f10365bb5d
commit 1dd97aa154
1 changed files with 3 additions and 3 deletions

View File

@ -330,7 +330,7 @@ static BOOL extract_cabinet_file(MSIPACKAGE* package, LPCWSTR source,
static VOID set_file_source(MSIPACKAGE* package, MSIFILE* file, MSICOMPONENT*
comp, LPCWSTR path)
{
if (file->Attributes & msidbFileAttributesNoncompressed)
if (!(file->Attributes & msidbFileAttributesCompressed))
{
LPWSTR p, path;
p = resolve_folder(package, comp->Directory, TRUE, FALSE, NULL);
@ -419,7 +419,7 @@ static UINT ready_media_for_file( MSIPACKAGE *package, struct media_info *mi,
msi_free(mi->last_path);
mi->last_path = NULL;
if (file->Attributes & msidbFileAttributesNoncompressed)
if (!(file->Attributes & msidbFileAttributesCompressed))
{
mi->last_path = resolve_folder(package, comp->Directory, TRUE, FALSE, NULL);
set_file_source(package,file,comp,mi->last_path);
@ -605,7 +605,7 @@ UINT ACTION_InstallFiles(MSIPACKAGE *package)
continue;
/* compressed files are extracted in ready_media_for_file */
if (~file->Attributes & msidbFileAttributesNoncompressed)
if (file->Attributes & msidbFileAttributesCompressed)
{
if (INVALID_FILE_ATTRIBUTES == GetFileAttributesW(file->TargetPath))
ERR("compressed file wasn't extracted (%s)\n",