[2/2] msi: Don't attempt to patch files from disabled components.
Hans Leidekker
hans at codeweavers.com
Wed Feb 27 05:31:13 CST 2013
---
dlls/msi/files.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/dlls/msi/files.c b/dlls/msi/files.c
index 96584df..d53da91 100644
--- a/dlls/msi/files.c
+++ b/dlls/msi/files.c
@@ -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);
--
1.7.10.4
More information about the wine-patches
mailing list