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
e41d6eb9
Commit
e41d6eb9
authored
Oct 01, 2009
by
Jacek Caban
Committed by
Alexandre Julliard
Oct 01, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon: Improve QueryCustomPolicy stub.
parent
a5923a6e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
3 deletions
+16
-3
sec_mgr.c
dlls/urlmon/sec_mgr.c
+2
-2
sec_mgr.c
dlls/urlmon/tests/sec_mgr.c
+14
-1
No files found.
dlls/urlmon/sec_mgr.c
View file @
e41d6eb9
...
...
@@ -590,8 +590,8 @@ static HRESULT WINAPI SecManagerImpl_QueryCustomPolicy(IInternetSecurityManager
return
hres
;
}
FIXME
(
"Default action is not implemented
\n
"
);
return
E_NOTIMPL
;
WARN
(
"Unknown guidKey %s
\n
"
,
debugstr_guid
(
guidKey
)
);
return
HRESULT_FROM_WIN32
(
ERROR_NOT_FOUND
)
;
}
static
HRESULT
WINAPI
SecManagerImpl_SetZoneMapping
(
IInternetSecurityManager
*
iface
,
...
...
dlls/urlmon/tests/sec_mgr.c
View file @
e41d6eb9
...
...
@@ -71,6 +71,10 @@ static const BYTE secid10_2[] =
static
const
GUID
CLSID_TestActiveX
=
{
0x178fc163
,
0xf585
,
0x4e24
,{
0x9c
,
0x13
,
0x4b
,
0xb7
,
0xfa
,
0xf8
,
0x06
,
0x46
}};
/* Defined as extern in urlmon.idl, but not exported by uuid.lib */
const
GUID
GUID_CUSTOM_CONFIRMOBJECTSAFETY
=
{
0x10200490
,
0xfa38
,
0x11d0
,{
0xac
,
0x0e
,
0x00
,
0xa0
,
0xc9
,
0xf
,
0xff
,
0xc0
}};
static
struct
secmgr_test
{
LPCWSTR
url
;
DWORD
zone
;
...
...
@@ -297,7 +301,9 @@ static void test_special_url_action(IInternetSecurityManager *secmgr, IInternetZ
static
void
test_activex
(
IInternetSecurityManager
*
secmgr
)
{
DWORD
policy
;
DWORD
policy
,
policy_size
;
struct
CONFIRMSAFETY
cs
;
BYTE
*
ppolicy
;
HRESULT
hres
;
policy
=
0xdeadbeef
;
...
...
@@ -305,6 +311,13 @@ static void test_activex(IInternetSecurityManager *secmgr)
sizeof
(
DWORD
),
(
BYTE
*
)
&
CLSID_TestActiveX
,
sizeof
(
CLSID
),
0
,
0
);
ok
(
hres
==
S_OK
,
"ProcessUrlAction(URLACTION_ACTIVEX_RUN) failed: %08x
\n
"
,
hres
);
ok
(
policy
==
URLPOLICY_ALLOW
||
policy
==
URLPOLICY_DISALLOW
,
"policy = %x
\n
"
,
policy
);
cs
.
clsid
=
CLSID_TestActiveX
;
cs
.
pUnk
=
(
IUnknown
*
)
0xdeadbeef
;
cs
.
dwFlags
=
0
;
hres
=
IInternetSecurityManager_QueryCustomPolicy
(
secmgr
,
url1
,
&
GUID_CUSTOM_CONFIRMOBJECTSAFETY
,
&
ppolicy
,
&
policy_size
,
(
BYTE
*
)
&
cs
,
sizeof
(
cs
),
0
);
ok
(
hres
==
HRESULT_FROM_WIN32
(
ERROR_NOT_FOUND
),
"QueryCusromPolicy failed: %08x
\n
"
,
hres
);
}
static
void
test_polices
(
void
)
...
...
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