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
12a55d91
Commit
12a55d91
authored
Jun 30, 2011
by
Hans Leidekker
Committed by
Alexandre Julliard
Jul 01, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi/tests: Clean up the local package in test_register_product.
parent
395887b6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
action.c
dlls/msi/tests/action.c
+11
-5
No files found.
dlls/msi/tests/action.c
View file @
12a55d91
...
...
@@ -2491,12 +2491,10 @@ static void test_register_product(void)
{
UINT
r
;
LONG
res
;
HKEY
hkey
;
HKEY
props
,
usage
;
HKEY
hkey
,
props
,
usage
;
LPSTR
usersid
;
char
date
[
MAX_PATH
];
char
temp
[
MAX_PATH
];
char
keypath
[
MAX_PATH
];
char
date
[
MAX_PATH
],
temp
[
MAX_PATH
],
keypath
[
MAX_PATH
],
path
[
MAX_PATH
];
DWORD
size
,
type
;
REGSAM
access
=
KEY_ALL_ACCESS
;
static
const
CHAR
uninstall
[]
=
"Software
\\
Microsoft
\\
Windows
\\
CurrentVersion"
...
...
@@ -2594,7 +2592,11 @@ static void test_register_product(void)
res
=
RegOpenKeyExA
(
hkey
,
"InstallProperties"
,
0
,
access
,
&
props
);
ok
(
res
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
res
);
size
=
sizeof
(
path
);
RegQueryValueExA
(
props
,
"LocalPackage"
,
NULL
,
&
type
,
(
LPBYTE
)
path
,
&
size
);
DeleteFileA
(
path
);
RegDeleteValueA
(
props
,
"LocalPackage"
);
/* LocalPackage is nondeterministic */
CHECK_DEL_REG_STR
(
props
,
"DisplayName"
,
"MSITEST"
);
CHECK_DEL_REG_STR
(
props
,
"DisplayVersion"
,
"1.1.1"
);
CHECK_DEL_REG_STR
(
props
,
"InstallDate"
,
date
);
...
...
@@ -2701,7 +2703,11 @@ static void test_register_product(void)
res
=
RegOpenKeyExA
(
hkey
,
"InstallProperties"
,
0
,
access
,
&
props
);
ok
(
res
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
res
);
size
=
sizeof
(
path
);
RegQueryValueExA
(
props
,
"LocalPackage"
,
NULL
,
&
type
,
(
LPBYTE
)
path
,
&
size
);
DeleteFileA
(
path
);
RegDeleteValueA
(
props
,
"LocalPackage"
);
/* LocalPackage is nondeterministic */
CHECK_DEL_REG_STR
(
props
,
"DisplayName"
,
"MSITEST"
);
CHECK_DEL_REG_STR
(
props
,
"DisplayVersion"
,
"1.1.1"
);
CHECK_DEL_REG_STR
(
props
,
"InstallDate"
,
date
);
...
...
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