msi: Allow read sharing if the package is openend in transacted mode.

This commit is contained in:
Hans Leidekker 2011-07-25 15:58:01 +02:00 committed by Alexandre Julliard
parent 911ad2bdab
commit b5ea0030f0
1 changed files with 1 additions and 1 deletions

View File

@ -358,7 +358,7 @@ UINT MSI_OpenDatabaseW(LPCWSTR szDBPath, LPCWSTR szPersist, MSIDATABASE **pdb)
else if( szPersist == MSIDBOPEN_TRANSACT ) else if( szPersist == MSIDBOPEN_TRANSACT )
{ {
r = StgOpenStorage( szDBPath, NULL, 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 ) else if( szPersist == MSIDBOPEN_DIRECT )
{ {