Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
031d2c63
Commit
031d2c63
authored
Apr 21, 2010
by
Hans Leidekker
Committed by
Alexandre Julliard
Apr 21, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Add a test to show that MsiOpenPackage must apply any existing patches.
parent
ed1711ec
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
+24
-0
patch.c
dlls/msi/tests/patch.c
+24
-0
No files found.
dlls/msi/tests/patch.c
View file @
031d2c63
...
...
@@ -674,6 +674,8 @@ static void test_simple_patch( void )
UINT
r
;
DWORD
size
;
char
path
[
MAX_PATH
];
const
char
*
query
;
MSIHANDLE
hpackage
,
hdb
,
hview
,
hrec
;
if
(
!
pMsiApplyPatchA
)
{
...
...
@@ -712,6 +714,28 @@ static void test_simple_patch( void )
strcat
(
path
,
"
\\
"
);
strcat
(
path
,
msifile
);
r
=
MsiOpenPackageA
(
path
,
&
hpackage
);
ok
(
r
==
ERROR_SUCCESS
,
"expected ERROR_SUCCESS, got %u
\n
"
,
r
);
hdb
=
MsiGetActiveDatabase
(
hpackage
);
ok
(
hdb
,
"failed to get database handle
\n
"
);
query
=
"SELECT * FROM `Property` where `Property` = 'PATCHNEWPACKAGECODE'"
;
r
=
MsiDatabaseOpenView
(
hdb
,
query
,
&
hview
);
ok
(
r
==
ERROR_SUCCESS
,
"expected ERROR_SUCCESS, got %u
\n
"
,
r
);
r
=
MsiViewExecute
(
hview
,
0
);
ok
(
r
==
ERROR_SUCCESS
,
"expected ERROR_SUCCESS, got %u
\n
"
,
r
);
r
=
MsiViewFetch
(
hview
,
&
hrec
);
todo_wine
ok
(
r
==
ERROR_SUCCESS
,
"expected ERROR_SUCCESS, got %u
\n
"
,
r
);
MsiCloseHandle
(
hrec
);
MsiViewClose
(
hview
);
MsiCloseHandle
(
hview
);
MsiCloseHandle
(
hdb
);
MsiCloseHandle
(
hpackage
);
r
=
MsiInstallProductA
(
msifile
,
"REMOVE=ALL"
);
ok
(
r
==
ERROR_SUCCESS
,
"expected ERROR_SUCCESS, got %u
\n
"
,
r
);
...
...
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