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
79ec3d9f
Commit
79ec3d9f
authored
Jan 31, 2023
by
Hans Leidekker
Committed by
Alexandre Julliard
Feb 01, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi/tests: Avoid test failures when running with insufficient rights.
Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=51040
parent
3a819255
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
package.c
dlls/msi/tests/package.c
+14
-1
No files found.
dlls/msi/tests/package.c
View file @
79ec3d9f
...
...
@@ -5066,6 +5066,7 @@ static void test_appsearch_inilocator(void)
}
ok
(
r
==
ERROR_SUCCESS
,
"Expected a valid package handle %u
\n
"
,
r
);
MsiCloseHandle
(
hdb
);
MsiSetInternalUI
(
INSTALLUILEVEL_NONE
,
NULL
);
r
=
MsiDoActionA
(
hpkg
,
"AppSearch"
);
...
...
@@ -5074,6 +5075,12 @@ static void test_appsearch_inilocator(void)
size
=
MAX_PATH
;
r
=
MsiGetPropertyA
(
hpkg
,
"SIGPROP1"
,
prop
,
&
size
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
if
(
!
prop
[
0
])
{
win_skip
(
"broken result
\n
"
);
MsiCloseHandle
(
hpkg
);
goto
error
;
}
ok
(
!
lstrcmpA
(
prop
,
"keydata"
),
"Expected
\"
keydata
\"
, got
\"
%s
\"\n
"
,
prop
);
size
=
MAX_PATH
;
...
...
@@ -5628,7 +5635,12 @@ static void test_installprops(void)
ok
(
!
lstrcmpA
(
buf
,
path
),
"Expected %s, got %s
\n
"
,
path
,
buf
);
RegOpenKeyA
(
HKEY_CURRENT_USER
,
"SOFTWARE
\\
Microsoft
\\
MS Setup (ACME)
\\
User Info"
,
&
hkey1
);
RegOpenKeyExA
(
HKEY_LOCAL_MACHINE
,
"SOFTWARE
\\
Microsoft
\\
Windows NT
\\
CurrentVersion"
,
0
,
access
,
&
hkey2
);
res
=
RegOpenKeyExA
(
HKEY_LOCAL_MACHINE
,
"SOFTWARE
\\
Microsoft
\\
Windows NT
\\
CurrentVersion"
,
0
,
access
,
&
hkey2
);
if
(
res
==
ERROR_ACCESS_DENIED
)
{
win_skip
(
"no access
\n
"
);
goto
done
;
}
RegOpenKeyExA
(
HKEY_LOCAL_MACHINE
,
"SOFTWARE
\\
Microsoft
\\
Windows
\\
CurrentVersion"
,
0
,
KEY_QUERY_VALUE
|
KEY_WOW64_64KEY
,
&
pathkey
);
...
...
@@ -5800,6 +5812,7 @@ static void test_installprops(void)
check_prop
(
hpkg
,
"CommonFiles64Dir"
,
""
,
0
,
0
);
}
done:
CloseHandle
(
hkey1
);
CloseHandle
(
hkey2
);
RegCloseKey
(
pathkey
);
...
...
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