msi: Don't attempt to patch files from disabled components.

This commit is contained in:
Hans Leidekker 2013-02-27 12:31:13 +01:00 committed by Alexandre Julliard
parent aeb7d70ffd
commit b36a26d65a

View file

@ -466,7 +466,8 @@ static BOOL patchfiles_cb(MSIPACKAGE *package, LPCWSTR file, DWORD action,
if (temp_folder[0] == '\0')
GetTempPathW(MAX_PATH, temp_folder);
if (!(p = get_next_filepatch(package, file))) return FALSE;
if (!(p = get_next_filepatch(package, file)) || !p->File->Component->Enabled)
return FALSE;
GetTempFileNameW(temp_folder, NULL, 0, patch_path);