Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lorenzo Ferrillo
wine
Commits
84863dff
Commit
84863dff
authored
12 years ago
by
Nikolay Sivov
Committed by
Alexandre Julliard
12 years ago
Browse files
Options
Downloads
Patches
Plain Diff
msxml3: Use constant to store supported safety options.
parent
ec2114e6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dlls/msxml3/httprequest.c
+6
-6
6 additions, 6 deletions
dlls/msxml3/httprequest.c
with
6 additions
and
6 deletions
dlls/msxml3/httprequest.c
+
6
−
6
View file @
84863dff
...
...
@@ -55,6 +55,10 @@ WINE_DEFAULT_DEBUG_CHANNEL(msxml);
static
const
WCHAR
colspaceW
[]
=
{
':'
,
' '
,
0
};
static
const
WCHAR
crlfW
[]
=
{
'\r'
,
'\n'
,
0
};
static
const
DWORD
safety_supported_options
=
INTERFACESAFE_FOR_UNTRUSTED_CALLER
|
INTERFACESAFE_FOR_UNTRUSTED_DATA
|
INTERFACE_USES_SECURITY_MANAGER
;
typedef
struct
BindStatusCallback
BindStatusCallback
;
...
...
@@ -1495,8 +1499,6 @@ static ULONG WINAPI httprequest_Safety_Release(IObjectSafety *iface)
return
IXMLHTTPRequest_Release
((
IXMLHTTPRequest
*
)
This
);
}
#define SAFETY_SUPPORTED_OPTIONS (INTERFACESAFE_FOR_UNTRUSTED_CALLER|INTERFACESAFE_FOR_UNTRUSTED_DATA|INTERFACE_USES_SECURITY_MANAGER)
static
HRESULT
WINAPI
httprequest_Safety_GetInterfaceSafetyOptions
(
IObjectSafety
*
iface
,
REFIID
riid
,
DWORD
*
supported
,
DWORD
*
enabled
)
{
...
...
@@ -1506,7 +1508,7 @@ static HRESULT WINAPI httprequest_Safety_GetInterfaceSafetyOptions(IObjectSafety
if
(
!
supported
||
!
enabled
)
return
E_POINTER
;
*
supported
=
SAFETY_SUPPORTED_OPTIONS
;
*
supported
=
safety_supported_options
;
*
enabled
=
This
->
safeopt
;
return
S_OK
;
...
...
@@ -1518,7 +1520,7 @@ static HRESULT WINAPI httprequest_Safety_SetInterfaceSafetyOptions(IObjectSafety
httprequest
*
This
=
impl_from_IObjectSafety
(
iface
);
TRACE
(
"(%p)->(%s %x %x)
\n
"
,
This
,
debugstr_guid
(
riid
),
mask
,
enabled
);
if
((
mask
&
~
SAFETY_SUPPORTED_OPTIONS
)
!=
0
)
if
((
mask
&
~
safety_supported_options
)
)
return
E_FAIL
;
This
->
safeopt
=
(
This
->
safeopt
&
~
mask
)
|
(
mask
&
enabled
);
...
...
@@ -1526,8 +1528,6 @@ static HRESULT WINAPI httprequest_Safety_SetInterfaceSafetyOptions(IObjectSafety
return
S_OK
;
}
#undef SAFETY_SUPPORTED_OPTIONS
static
const
IObjectSafetyVtbl
ObjectSafetyVtbl
=
{
httprequest_Safety_QueryInterface
,
httprequest_Safety_AddRef
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment