[3/3] msi: Open the database read/write in MSI_OpenPackageW.

Hans Leidekker hans at codeweavers.com
Tue Oct 20 07:10:19 CDT 2009


Fixes transforms that add binary streams.

 -Hans

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

diff --git a/dlls/msi/package.c b/dlls/msi/package.c
index 1ab2afd..13091d9 100644
--- a/dlls/msi/package.c
+++ b/dlls/msi/package.c
@@ -966,7 +966,11 @@ UINT MSI_OpenPackageW(LPCWSTR szPackage, MSIPACKAGE **pPackage)
             return GetLastError();
         }
 
-        r = MSI_OpenDatabaseW( file, MSIDBOPEN_READONLY, &db );
+        /* 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_DIRECT, &db );
         if( r != ERROR_SUCCESS )
         {
             if (file != szPackage)
-- 
1.6.3.3




More information about the wine-patches mailing list