[2/5] msi: Allow read sharing if the package is openend in transacted mode.

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


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

diff --git a/dlls/msi/database.c b/dlls/msi/database.c
index 333746e..549cb16 100644
--- a/dlls/msi/database.c
+++ b/dlls/msi/database.c
@@ -358,7 +358,7 @@ UINT MSI_OpenDatabaseW(LPCWSTR szDBPath, LPCWSTR szPersist, MSIDATABASE **pdb)
     else if( szPersist == MSIDBOPEN_TRANSACT )
     {
         r = StgOpenStorage( szDBPath, NULL,
-              STGM_TRANSACTED|STGM_READWRITE|STGM_SHARE_EXCLUSIVE, NULL, 0, &stg);
+              STGM_TRANSACTED|STGM_READWRITE|STGM_SHARE_DENY_WRITE, NULL, 0, &stg);
     }
     else if( szPersist == MSIDBOPEN_DIRECT )
     {
-- 
1.7.4.1







More information about the wine-patches mailing list