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
3a7c2d00
Commit
3a7c2d00
authored
Sep 09, 2009
by
Hans Leidekker
Committed by
Alexandre Julliard
Sep 10, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Open the database read/write when the update count is greater than zero in…
msi: Open the database read/write when the update count is greater than zero in MsiGetSummaryInformation.
parent
9abdf54c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
5 deletions
+36
-5
suminfo.c
dlls/msi/suminfo.c
+3
-1
install.c
dlls/msi/tests/install.c
+1
-4
suminfo.c
dlls/msi/tests/suminfo.c
+32
-0
No files found.
dlls/msi/suminfo.c
View file @
3a7c2d00
...
@@ -475,7 +475,9 @@ UINT WINAPI MsiGetSummaryInformationW( MSIHANDLE hDatabase,
...
@@ -475,7 +475,9 @@ UINT WINAPI MsiGetSummaryInformationW( MSIHANDLE hDatabase,
if
(
szDatabase
)
if
(
szDatabase
)
{
{
ret
=
MSI_OpenDatabaseW
(
szDatabase
,
NULL
,
&
db
);
LPCWSTR
persist
=
uiUpdateCount
?
MSIDBOPEN_TRANSACT
:
MSIDBOPEN_READONLY
;
ret
=
MSI_OpenDatabaseW
(
szDatabase
,
persist
,
&
db
);
if
(
ret
!=
ERROR_SUCCESS
)
if
(
ret
!=
ERROR_SUCCESS
)
return
ret
;
return
ret
;
}
}
...
...
dlls/msi/tests/install.c
View file @
3a7c2d00
...
@@ -4491,10 +4491,7 @@ static void set_transform_summary_info(void)
...
@@ -4491,10 +4491,7 @@ static void set_transform_summary_info(void)
ok
(
r
==
ERROR_SUCCESS
,
"Failed to set summary info
\n
"
);
ok
(
r
==
ERROR_SUCCESS
,
"Failed to set summary info
\n
"
);
r
=
MsiSummaryInfoPersist
(
suminfo
);
r
=
MsiSummaryInfoPersist
(
suminfo
);
todo_wine
ok
(
r
==
ERROR_SUCCESS
,
"Failed to make summary info persist
\n
"
);
{
ok
(
r
==
ERROR_SUCCESS
,
"Failed to make summary info persist
\n
"
);
}
r
=
MsiCloseHandle
(
suminfo
);
r
=
MsiCloseHandle
(
suminfo
);
ok
(
r
==
ERROR_SUCCESS
,
"Failed to close suminfo
\n
"
);
ok
(
r
==
ERROR_SUCCESS
,
"Failed to close suminfo
\n
"
);
...
...
dlls/msi/tests/suminfo.c
View file @
3a7c2d00
...
@@ -239,6 +239,32 @@ static void test_suminfo(void)
...
@@ -239,6 +239,32 @@ static void test_suminfo(void)
r
=
MsiCloseHandle
(
hdb
);
r
=
MsiCloseHandle
(
hdb
);
ok
(
r
==
ERROR_SUCCESS
,
"MsiCloseHandle failed
\n
"
);
ok
(
r
==
ERROR_SUCCESS
,
"MsiCloseHandle failed
\n
"
);
/* filename, non-zero update count */
MsiGetSummaryInformation
(
0
,
msifile
,
1
,
&
hsuminfo
);
ok
(
r
==
ERROR_SUCCESS
,
"MsiGetSummaryInformation failed
\n
"
);
r
=
MsiSummaryInfoSetProperty
(
hsuminfo
,
PID_AUTHOR
,
VT_LPSTR
,
1
,
&
ft
,
"Mike"
);
ok
(
r
==
ERROR_SUCCESS
,
"MsiSummaryInfoSetProperty wrong error
\n
"
);
r
=
MsiSummaryInfoPersist
(
hsuminfo
);
ok
(
r
==
ERROR_SUCCESS
,
"MsiSummaryInfoPersist failed %u
\n
"
,
r
);
r
=
MsiCloseHandle
(
hsuminfo
);
ok
(
r
==
ERROR_SUCCESS
,
"MsiCloseHandle failed %u
\n
"
,
r
);
/* filename, zero update count */
MsiGetSummaryInformation
(
0
,
msifile
,
0
,
&
hsuminfo
);
ok
(
r
==
ERROR_SUCCESS
,
"MsiGetSummaryInformation failed %u
\n
"
,
r
);
r
=
MsiSummaryInfoSetProperty
(
hsuminfo
,
PID_AUTHOR
,
VT_LPSTR
,
1
,
&
ft
,
"Mike"
);
todo_wine
ok
(
r
==
ERROR_FUNCTION_FAILED
,
"MsiSummaryInfoSetProperty wrong error, %u
\n
"
,
r
);
r
=
MsiSummaryInfoPersist
(
hsuminfo
);
ok
(
r
==
ERROR_FUNCTION_FAILED
,
"MsiSummaryInfoPersist wrong error %u
\n
"
,
r
);
r
=
MsiCloseHandle
(
hsuminfo
);
ok
(
r
==
ERROR_SUCCESS
,
"MsiCloseHandle failed
\n
"
);
r
=
DeleteFile
(
msifile
);
r
=
DeleteFile
(
msifile
);
ok
(
r
,
"DeleteFile failed
\n
"
);
ok
(
r
,
"DeleteFile failed
\n
"
);
}
}
...
@@ -409,6 +435,12 @@ static void test_summary_binary(void)
...
@@ -409,6 +435,12 @@ static void test_summary_binary(void)
ok
(
r
==
ERROR_SUCCESS
,
"getpropcount failed
\n
"
);
ok
(
r
==
ERROR_SUCCESS
,
"getpropcount failed
\n
"
);
todo_wine
ok
(
count
==
10
,
"prop count incorrect
\n
"
);
todo_wine
ok
(
count
==
10
,
"prop count incorrect
\n
"
);
r
=
MsiSummaryInfoSetProperty
(
hsuminfo
,
PID_TITLE
,
VT_LPSTR
,
0
,
NULL
,
"Mike"
);
ok
(
r
==
ERROR_FUNCTION_FAILED
,
"MsiSummaryInfoSetProperty failed %u
\n
"
,
r
);
r
=
MsiSummaryInfoPersist
(
hsuminfo
);
ok
(
r
==
ERROR_FUNCTION_FAILED
,
"MsiSummaryInfoPersist failed %u
\n
"
,
r
);
MsiCloseHandle
(
hsuminfo
);
MsiCloseHandle
(
hsuminfo
);
MsiCloseHandle
(
hdb
);
MsiCloseHandle
(
hdb
);
...
...
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