Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
20bdf059
Commit
20bdf059
authored
Jul 27, 2011
by
Bernhard Loos
Committed by
Alexandre Julliard
Jul 28, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: MsiDatabaseCommit also succeeds for a a readonly database.
parent
5f46f701
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
msiquery.c
dlls/msi/msiquery.c
+6
-0
db.c
dlls/msi/tests/db.c
+3
-0
No files found.
dlls/msi/msiquery.c
View file @
20bdf059
...
...
@@ -831,6 +831,12 @@ UINT WINAPI MsiDatabaseCommit( MSIHANDLE hdb )
return
ERROR_SUCCESS
;
}
if
(
db
->
mode
==
MSIDBOPEN_READONLY
)
{
msiobj_release
(
&
db
->
hdr
);
return
ERROR_SUCCESS
;
}
/* FIXME: lock the database */
r
=
MSI_CommitTables
(
db
);
...
...
dlls/msi/tests/db.c
View file @
20bdf059
...
...
@@ -96,6 +96,9 @@ static void test_msidatabase(void)
res
=
MsiOpenDatabase
(
msifile
,
MSIDBOPEN_READONLY
,
&
hdb
);
ok
(
res
==
ERROR_SUCCESS
,
"Failed to open database
\n
"
);
res
=
MsiDatabaseCommit
(
hdb
);
ok
(
res
==
ERROR_SUCCESS
,
"Failed to commit database
\n
"
);
res
=
MsiCloseHandle
(
hdb
);
ok
(
res
==
ERROR_SUCCESS
,
"Failed to close database
\n
"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment