Module: wine Branch: master Commit: b7453555a29440ec4b95df87938bf4b00387123b URL: http://source.winehq.org/git/wine.git/?a=commit;h=b7453555a29440ec4b95df8793...
Author: Hans Leidekker hans@codeweavers.com Date: Wed Mar 25 14:33:08 2015 +0100
msi: Check the component enabled flag earlier.
---
dlls/msi/files.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/dlls/msi/files.c b/dlls/msi/files.c index 531ce38..36e91ca 100644 --- a/dlls/msi/files.c +++ b/dlls/msi/files.c @@ -72,7 +72,7 @@ static msi_file_state calculate_install_state( MSIPACKAGE *package, MSIFILE *fil DWORD size;
comp->Action = msi_get_component_action( package, comp ); - if (comp->Action != INSTALLSTATE_LOCAL || (comp->assembly && comp->assembly->installed)) + if (!comp->Enabled || comp->Action != INSTALLSTATE_LOCAL || (comp->assembly && comp->assembly->installed)) { TRACE("skipping %s (not scheduled for install)\n", debugstr_w(file->File)); return msifs_skipped; @@ -353,7 +353,6 @@ UINT ACTION_InstallFiles(MSIPACKAGE *package) rc = ERROR_FUNCTION_FAILED; goto done; } - if (!file->Component->Enabled) continue;
if (file->state != msifs_hashmatch && file->state != msifs_skipped &&