[3/5] msi: Don't create a temporary copy of the package.

Hans Leidekker hans at codeweavers.com
Mon Jul 25 08:58:17 CDT 2011


There's no need for it now that we open the package in transacted mode.
---
 dlls/msi/package.c |   14 +-------------
 1 files changed, 1 insertions(+), 13 deletions(-)

diff --git a/dlls/msi/package.c b/dlls/msi/package.c
index c5094b5..a020261 100644
--- a/dlls/msi/package.c
+++ b/dlls/msi/package.c
@@ -1467,20 +1467,8 @@ UINT MSI_OpenPackageW(LPCWSTR szPackage, MSIPACKAGE **pPackage)
             ptr = strrchrW( base_url, '/' );
             if (ptr) *(ptr + 1) = '\0';
         }
-        else
-        {
-            r = copy_package_to_temp( szPackage, temppath );
-            if ( r != ERROR_SUCCESS )
-                return r;
-
-            file = temppath;
-        }
-        TRACE("Opening relocated package %s\n", debugstr_w( file ));
+        TRACE("opening package %s\n", debugstr_w( file ));
 
-        /* transforms that add binary streams require that we open the database
-         * read/write, which is safe because we always create a copy that is thrown
-         * away when we're done.
-         */
         r = MSI_OpenDatabaseW( file, MSIDBOPEN_TRANSACT, &db );
         if( r != ERROR_SUCCESS )
         {
-- 
1.7.4.1







More information about the wine-patches mailing list