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
907adb83
Commit
907adb83
authored
Mar 05, 2009
by
Paul Vriens
Committed by
Alexandre Julliard
Mar 05, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon/tests: Use an action that is available on all IE versions.
parent
ebb6dd9c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
misc.c
dlls/urlmon/tests/misc.c
+10
-5
No files found.
dlls/urlmon/tests/misc.c
View file @
907adb83
...
...
@@ -943,22 +943,27 @@ static void test_ZoneManager(void)
IInternetZoneManager
*
zonemgr
=
NULL
;
BYTE
buf
[
32
];
HRESULT
hres
;
DWORD
action
=
URLACTION_CREDENTIALS_USE
;
/* Implemented on all IE versions */
hres
=
CoInternetCreateZoneManager
(
NULL
,
&
zonemgr
,
0
);
ok
(
hres
==
S_OK
,
"CoInternetCreateZoneManager failed: %08x
\n
"
,
hres
);
if
(
FAILED
(
hres
))
return
;
hres
=
IInternetZoneManager_GetZoneActionPolicy
(
zonemgr
,
3
,
0x1a10
,
buf
,
hres
=
IInternetZoneManager_GetZoneActionPolicy
(
zonemgr
,
3
,
action
,
buf
,
sizeof
(
DWORD
),
URLZONEREG_DEFAULT
);
ok
(
hres
==
S_OK
,
"GetZoneActionPolicy failed: %08x
\n
"
,
hres
);
ok
(
*
(
DWORD
*
)
buf
==
1
,
"policy=%d, expected 1
\n
"
,
*
(
DWORD
*
)
buf
);
ok
(
*
(
DWORD
*
)
buf
==
URLPOLICY_CREDENTIALS_SILENT_LOGON_OK
||
*
(
DWORD
*
)
buf
==
URLPOLICY_CREDENTIALS_MUST_PROMPT_USER
||
*
(
DWORD
*
)
buf
==
URLPOLICY_CREDENTIALS_CONDITIONAL_PROMPT
||
*
(
DWORD
*
)
buf
==
URLPOLICY_CREDENTIALS_ANONYMOUS_ONLY
,
"unexpected policy=%d
\n
"
,
*
(
DWORD
*
)
buf
);
hres
=
IInternetZoneManager_GetZoneActionPolicy
(
zonemgr
,
3
,
0x1a10
,
NULL
,
hres
=
IInternetZoneManager_GetZoneActionPolicy
(
zonemgr
,
3
,
action
,
NULL
,
sizeof
(
DWORD
),
URLZONEREG_DEFAULT
);
ok
(
hres
==
E_INVALIDARG
,
"GetZoneActionPolicy failed: %08x, expected E_INVALIDARG
\n
"
,
hres
);
hres
=
IInternetZoneManager_GetZoneActionPolicy
(
zonemgr
,
3
,
0x1a10
,
buf
,
hres
=
IInternetZoneManager_GetZoneActionPolicy
(
zonemgr
,
3
,
action
,
buf
,
2
,
URLZONEREG_DEFAULT
);
ok
(
hres
==
E_INVALIDARG
,
"GetZoneActionPolicy failed: %08x, expected E_INVALIDARG
\n
"
,
hres
);
...
...
@@ -966,7 +971,7 @@ static void test_ZoneManager(void)
sizeof
(
DWORD
),
URLZONEREG_DEFAULT
);
ok
(
hres
==
E_FAIL
,
"GetZoneActionPolicy failed: %08x, expected E_FAIL
\n
"
,
hres
);
hres
=
IInternetZoneManager_GetZoneActionPolicy
(
zonemgr
,
13
,
0x1a10
,
buf
,
hres
=
IInternetZoneManager_GetZoneActionPolicy
(
zonemgr
,
13
,
action
,
buf
,
sizeof
(
DWORD
),
URLZONEREG_DEFAULT
);
ok
(
hres
==
E_INVALIDARG
,
"GetZoneActionPolicy failed: %08x, expected E_INVALIDARG
\n
"
,
hres
);
...
...
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