[1/3] msi: Always create a temporary copy of the package.

Hans Leidekker hans at codeweavers.com
Tue Oct 20 07:09:08 CDT 2009


This avoids deleting a file under URL cache control and prepares the
ground for the third patch.

 -Hans

---
 dlls/msi/package.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/dlls/msi/package.c b/dlls/msi/package.c
index fa0cd6f..1d34770 100644
--- a/dlls/msi/package.c
+++ b/dlls/msi/package.c
@@ -908,6 +908,8 @@ UINT MSI_OpenPackageW(LPCWSTR szPackage, MSIPACKAGE **pPackage)
         if ( UrlIsW( szPackage, URLIS_URL ) )
         {
             file = msi_download_file( szPackage, temppath );
+            if ( file != szPackage )
+                file = copy_package_to_temp( file, temppath );
 
             base_url = strdupW( szPackage );
             if ( !base_url )
-- 
1.6.3.3





More information about the wine-patches mailing list