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
33ed6393
Commit
33ed6393
authored
Sep 21, 2011
by
Francois Gouget
Committed by
Alexandre Julliard
Sep 21, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon/tests: Skip some tests if not allowed to modify the zone elevation feature.
parent
fcb351b4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
9 deletions
+20
-9
misc.c
dlls/urlmon/tests/misc.c
+20
-9
No files found.
dlls/urlmon/tests/misc.c
View file @
33ed6393
...
...
@@ -1545,7 +1545,7 @@ static void test_internet_features_registry(void) {
char
*
name
;
HKEY
feature_control
;
HKEY
feature
;
DWORD
value
;
DWORD
value
,
skip_zone
;
BOOL
delete_feature_key
=
TRUE
;
BOOL
delete_feature_control_key
=
FALSE
;
...
...
@@ -1615,21 +1615,32 @@ static void test_internet_features_registry(void) {
value
=
1
;
res
=
RegSetValueExA
(
feature
,
"*"
,
0
,
REG_DWORD
,
(
BYTE
*
)
&
value
,
sizeof
(
DWORD
));
ok
(
res
==
ERROR_SUCCESS
,
"RegSetValueEx failed: %d
\n
"
,
res
);
hres
=
pCoInternetIsFeatureEnabled
(
FEATURE_ZONE_ELEVATION
,
GET_FEATURE_FROM_PROCESS
);
ok
(
hres
==
S_OK
,
"CoInternetIsFeatureEnabled returned %08x, expected S_OK
\n
"
,
hres
);
if
(
res
==
ERROR_ACCESS_DENIED
)
{
skip
(
"Not allowed to modify zone elevation
\n
"
);
skip_zone
=
1
;
}
else
{
skip_zone
=
0
;
ok
(
res
==
ERROR_SUCCESS
,
"RegSetValueEx failed: %d
\n
"
,
res
);
hres
=
pCoInternetIsFeatureEnabled
(
FEATURE_ZONE_ELEVATION
,
GET_FEATURE_FROM_PROCESS
);
ok
(
hres
==
S_OK
,
"CoInternetIsFeatureEnabled returned %08x, expected S_OK
\n
"
,
hres
);
}
RegDeleteValueA
(
feature
,
"*"
);
RegCloseKey
(
feature
);
RegCloseKey
(
feature_control
);
/* Value is still cached from last time. */
hres
=
pCoInternetIsFeatureEnabled
(
FEATURE_ZONE_ELEVATION
,
GET_FEATURE_FROM_PROCESS
);
ok
(
hres
==
S_OK
,
"CoInternetIsFeatureEnabled returned %08x, expected S_OK
\n
"
,
hres
);
if
(
!
skip_zone
)
{
hres
=
pCoInternetIsFeatureEnabled
(
FEATURE_ZONE_ELEVATION
,
GET_FEATURE_FROM_PROCESS
);
ok
(
hres
==
S_OK
,
"CoInternetIsFeatureEnabled returned %08x, expected S_OK
\n
"
,
hres
);
hres
=
pCoInternetSetFeatureEnabled
(
FEATURE_ZONE_ELEVATION
,
SET_FEATURE_ON_PROCESS
,
FALSE
);
ok
(
hres
==
S_OK
,
"CoInternetSetFeatureEnabled failed: %08x
\n
"
,
hres
);
hres
=
pCoInternetSetFeatureEnabled
(
FEATURE_ZONE_ELEVATION
,
SET_FEATURE_ON_PROCESS
,
FALSE
);
ok
(
hres
==
S_OK
,
"CoInternetSetFeatureEnabled failed: %08x
\n
"
,
hres
);
}
test_internet_feature_defaults
();
}
...
...
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