[PATCH 2/2] appwiz.cpl: Copy addons to cache instead of moving.

Zebediah Figura z.figura12 at gmail.com
Wed Dec 26 13:43:03 CST 2018


From: Sebastian Lackner <sebastian at fds-team.de>

This leaves behind entries in wininet's own cache. That these are created in
the first place is probably less than desirable, but that seems best
addressed after code freeze.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=46364
Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
---
 dlls/appwiz.cpl/addons.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/appwiz.cpl/addons.c b/dlls/appwiz.cpl/addons.c
index c34101f3d8..79f667bbeb 100644
--- a/dlls/appwiz.cpl/addons.c
+++ b/dlls/appwiz.cpl/addons.c
@@ -513,7 +513,7 @@ static HRESULT WINAPI InstallCallback_OnStopBinding(IBindStatusCallback *iface,
 
         cache_file_name = get_cache_file_name(TRUE);
         if(cache_file_name) {
-            MoveFileW(msi_file, cache_file_name);
+            CopyFileW(msi_file, cache_file_name, FALSE);
             heap_free(cache_file_name);
         }
     }else {
-- 
2.14.1




More information about the wine-devel mailing list