Commit afcd2c53 authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

msi: Open the database read/write in MSI_OpenPackageW.

Fixes transforms that add binary streams.
parent 8dd3d389
...@@ -966,7 +966,11 @@ UINT MSI_OpenPackageW(LPCWSTR szPackage, MSIPACKAGE **pPackage) ...@@ -966,7 +966,11 @@ UINT MSI_OpenPackageW(LPCWSTR szPackage, MSIPACKAGE **pPackage)
return GetLastError(); 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( r != ERROR_SUCCESS )
{ {
if (file != szPackage) if (file != szPackage)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment