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
fde66de6
Commit
fde66de6
authored
Apr 26, 2012
by
Hans Leidekker
Committed by
Alexandre Julliard
Apr 26, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Don't free cached tables in MsiDatabaseCommit.
parent
de43de51
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
47 additions
and
3 deletions
+47
-3
table.c
dlls/msi/table.c
+0
-3
package.c
dlls/msi/tests/package.c
+47
-0
No files found.
dlls/msi/table.c
View file @
fde66de6
...
...
@@ -2195,9 +2195,6 @@ UINT MSI_CommitTables( MSIDATABASE *db )
}
}
/* force everything to reload next time */
free_cached_tables
(
db
);
hr
=
IStorage_Commit
(
db
->
storage
,
0
);
if
(
FAILED
(
hr
))
{
...
...
dlls/msi/tests/package.c
View file @
fde66de6
...
...
@@ -8746,6 +8746,52 @@ error:
DeleteFileA
(
msifile
);
}
static
void
test_MsiDatabaseCommit
(
void
)
{
UINT
r
;
MSIHANDLE
hdb
,
hpkg
=
0
;
char
buf
[
32
],
package
[
12
];
DWORD
sz
;
hdb
=
create_package_db
();
ok
(
hdb
,
"failed to create database
\n
"
);
r
=
create_property_table
(
hdb
);
ok
(
r
==
ERROR_SUCCESS
,
"can't create Property table %u
\n
"
,
r
);
sprintf
(
package
,
"#%u"
,
hdb
);
r
=
MsiOpenPackage
(
package
,
&
hpkg
);
if
(
r
==
ERROR_INSTALL_PACKAGE_REJECTED
)
{
skip
(
"Not enough rights to perform tests
\n
"
);
goto
error
;
}
ok
(
r
==
ERROR_SUCCESS
,
"got %u
\n
"
,
r
);
r
=
MsiSetPropertyA
(
hpkg
,
"PROP"
,
"value"
);
ok
(
r
==
ERROR_SUCCESS
,
"got %u
\n
"
,
r
);
buf
[
0
]
=
0
;
sz
=
sizeof
(
buf
);
r
=
MsiGetPropertyA
(
hpkg
,
"PROP"
,
buf
,
&
sz
);
ok
(
r
==
ERROR_SUCCESS
,
"MsiGetPropertyA returned %u
\n
"
,
r
);
ok
(
!
lstrcmpA
(
buf
,
"value"
),
"got
\"
%s
\"\n
"
,
buf
);
r
=
MsiDatabaseCommit
(
hdb
);
ok
(
r
==
ERROR_SUCCESS
,
"MsiDatabaseCommit returned %u
\n
"
,
r
);
buf
[
0
]
=
0
;
sz
=
sizeof
(
buf
);
r
=
MsiGetPropertyA
(
hpkg
,
"PROP"
,
buf
,
&
sz
);
ok
(
r
==
ERROR_SUCCESS
,
"MsiGetPropertyA returned %u
\n
"
,
r
);
ok
(
!
lstrcmpA
(
buf
,
"value"
),
"got
\"
%s
\"\n
"
,
buf
);
MsiCloseHandle
(
hpkg
);
error:
MsiCloseHandle
(
hdb
);
DeleteFileA
(
msifile
);
}
START_TEST
(
package
)
{
STATEMGRSTATUS
status
;
...
...
@@ -8802,6 +8848,7 @@ START_TEST(package)
test_MsiApplyMultiplePatches
();
test_MsiApplyPatch
();
test_MsiEnumComponentCosts
();
test_MsiDatabaseCommit
();
if
(
pSRSetRestorePointA
&&
!
pMsiGetComponentPathExA
&&
ret
)
{
...
...
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