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
da55a13c
Commit
da55a13c
authored
Sep 19, 2011
by
Piotr Caban
Committed by
Alexandre Julliard
Sep 19, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon: Added partial CoInternetIsFeatureEnabledForUrl implementation.
parent
8621fbfd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
1 deletion
+40
-1
internet.c
dlls/urlmon/internet.c
+40
-1
No files found.
dlls/urlmon/internet.c
View file @
da55a13c
...
@@ -700,6 +700,45 @@ HRESULT WINAPI CoInternetIsFeatureEnabled(INTERNETFEATURELIST FeatureEntry, DWOR
...
@@ -700,6 +700,45 @@ HRESULT WINAPI CoInternetIsFeatureEnabled(INTERNETFEATURELIST FeatureEntry, DWOR
HRESULT
WINAPI
CoInternetIsFeatureEnabledForUrl
(
INTERNETFEATURELIST
FeatureEntry
,
DWORD
dwFlags
,
LPCWSTR
szURL
,
HRESULT
WINAPI
CoInternetIsFeatureEnabledForUrl
(
INTERNETFEATURELIST
FeatureEntry
,
DWORD
dwFlags
,
LPCWSTR
szURL
,
IInternetSecurityManager
*
pSecMgr
)
IInternetSecurityManager
*
pSecMgr
)
{
{
FIXME
(
"(%d %08x %s %p)
\n
"
,
FeatureEntry
,
dwFlags
,
debugstr_w
(
szURL
),
pSecMgr
);
DWORD
urlaction
=
0
;
HRESULT
hres
;
TRACE
(
"(%d %08x %s %p)
\n
"
,
FeatureEntry
,
dwFlags
,
debugstr_w
(
szURL
),
pSecMgr
);
if
(
FeatureEntry
==
FEATURE_MIME_SNIFFING
)
urlaction
=
URLACTION_FEATURE_MIME_SNIFFING
;
else
if
(
FeatureEntry
==
FEATURE_WINDOW_RESTRICTIONS
)
urlaction
=
URLACTION_FEATURE_WINDOW_RESTRICTIONS
;
else
if
(
FeatureEntry
==
FEATURE_ZONE_ELEVATION
)
urlaction
=
URLACTION_FEATURE_ZONE_ELEVATION
;
if
(
!
szURL
||
!
urlaction
||
!
pSecMgr
)
return
CoInternetIsFeatureEnabled
(
FeatureEntry
,
dwFlags
);
switch
(
dwFlags
)
{
case
GET_FEATURE_FROM_THREAD
:
case
GET_FEATURE_FROM_THREAD_LOCALMACHINE
:
case
GET_FEATURE_FROM_THREAD_INTRANET
:
case
GET_FEATURE_FROM_THREAD_TRUSTED
:
case
GET_FEATURE_FROM_THREAD_INTERNET
:
case
GET_FEATURE_FROM_THREAD_RESTRICTED
:
FIXME
(
"unsupported flags %x
\n
"
,
dwFlags
);
return
E_NOTIMPL
;
return
E_NOTIMPL
;
case
GET_FEATURE_FROM_PROCESS
:
hres
=
CoInternetIsFeatureEnabled
(
FeatureEntry
,
dwFlags
);
if
(
hres
!=
S_OK
)
return
hres
;
/* fall through */
default:
{
DWORD
policy
=
URLPOLICY_DISALLOW
;
hres
=
IInternetSecurityManager_ProcessUrlAction
(
pSecMgr
,
szURL
,
urlaction
,
(
BYTE
*
)
&
policy
,
sizeof
(
DWORD
),
NULL
,
0
,
PUAF_NOUI
,
0
);
if
(
hres
!=
S_OK
||
policy
!=
URLPOLICY_ALLOW
)
return
S_OK
;
return
S_FALSE
;
}
}
}
}
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