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
33736bb8
Commit
33736bb8
authored
Aug 30, 2011
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
Sep 06, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Correct MSXML object safety tests.
parent
06bdd386
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
12 deletions
+15
-12
domdoc.c
dlls/msxml3/domdoc.c
+2
-1
httprequest.c
dlls/msxml3/httprequest.c
+2
-1
domdoc.c
dlls/msxml3/tests/domdoc.c
+11
-10
No files found.
dlls/msxml3/domdoc.c
View file @
33736bb8
...
...
@@ -3430,7 +3430,8 @@ static HRESULT WINAPI domdoc_Safety_SetInterfaceSafetyOptions(IObjectSafety *ifa
if
((
mask
&
~
SAFETY_SUPPORTED_OPTIONS
)
!=
0
)
return
E_FAIL
;
This
->
safeopt
=
enabled
&
mask
&
SAFETY_SUPPORTED_OPTIONS
;
This
->
safeopt
=
(
This
->
safeopt
&
~
mask
)
|
(
mask
&
enabled
);
return
S_OK
;
}
...
...
dlls/msxml3/httprequest.c
View file @
33736bb8
...
...
@@ -1131,7 +1131,8 @@ static HRESULT WINAPI httprequest_Safety_SetInterfaceSafetyOptions(IObjectSafety
if
((
mask
&
~
SAFETY_SUPPORTED_OPTIONS
)
!=
0
)
return
E_FAIL
;
This
->
safeopt
=
enabled
&
mask
&
SAFETY_SUPPORTED_OPTIONS
;
This
->
safeopt
=
(
This
->
safeopt
&
~
mask
)
|
(
mask
&
enabled
);
return
S_OK
;
}
...
...
dlls/msxml3/tests/domdoc.c
View file @
33736bb8
...
...
@@ -4457,11 +4457,11 @@ static void _test_IObjectSafety_common(unsigned line, IObjectSafety *safety)
ok_
(
__FILE__
,
line
)(
hr
==
S_OK
,
"ret %08x
\n
"
,
hr
);
hr
=
IObjectSafety_GetInterfaceSafetyOptions
(
safety
,
NULL
,
&
supported
,
&
enabled
);
ok_
(
__FILE__
,
line
)(
hr
==
S_OK
,
"ret %08x
\n
"
,
hr
);
todo_wine
ok_
(
__FILE__
,
line
)(
broken
(
enabl
ed
==
INTERFACESAFE_FOR_UNTRUSTED_CALLER
)
||
enabled
==
(
INTERFACESAFE_FOR_UNTRUSTED_CALLER
|
INTERFACE_USES_SECURITY_MANAGER
)
/* msxml3 SP8+ */
,
"Expected (INTERFACESAFE_FOR_UNTRUSTED_CALLER | INTERFACE_USES_SECURITY_MANAGER), "
"got %08x
\n
"
,
enabl
ed
);
ok_
(
__FILE__
,
line
)(
enabled
==
INTERFACESAFE_FOR_UNTRUSTED_CALLER
,
"Expected INTERFACESAFE_FOR_UNTRUSTED_CALLER got %08x
\n
"
,
enabled
);
ok_
(
__FILE__
,
line
)(
broken
(
support
ed
==
INTERFACESAFE_FOR_UNTRUSTED_CALLER
)
||
supported
==
(
INTERFACESAFE_FOR_UNTRUSTED_CALLER
|
INTERFACESAFE_FOR_UNTRUSTED_DATA
|
INTERFACE_USES_SECURITY_MANAGER
)
/* msxml3 SP8+ */
,
"Expected (INTERFACESAFE_FOR_UNTRUSTED_CALLER | INTERFACE
SAFE_FOR_UNTRUSTED_DATA | INTERFACE
_USES_SECURITY_MANAGER), "
"got %08x
\n
"
,
support
ed
);
hr
=
IObjectSafety_SetInterfaceSafetyOptions
(
safety
,
NULL
,
INTERFACESAFE_FOR_UNTRUSTED_DATA
,
...
...
@@ -4469,11 +4469,12 @@ static void _test_IObjectSafety_common(unsigned line, IObjectSafety *safety)
ok_
(
__FILE__
,
line
)(
hr
==
S_OK
,
"ret %08x
\n
"
,
hr
);
hr
=
IObjectSafety_GetInterfaceSafetyOptions
(
safety
,
NULL
,
&
supported
,
&
enabled
);
ok_
(
__FILE__
,
line
)(
hr
==
S_OK
,
"ret %08x
\n
"
,
hr
);
todo_wine
ok_
(
__FILE__
,
line
)(
broken
(
enabled
==
INTERFACESAFE_FOR_UNTRUSTED_DATA
)
||
enabled
==
(
INTERFACESAFE_FOR_UNTRUSTED_CALLER
|
INTERFACESAFE_FOR_UNTRUSTED_DATA
)
/* msxml3 SP8+ */
,
"Expected (INTERFACESAFE_FOR_UNTRUSTED_CALLER | INTERFACESAFE_FOR_UNTRUSTED_DATA), "
"got %08x
\n
"
,
enabled
);
ok_
(
__FILE__
,
line
)(
enabled
==
(
INTERFACESAFE_FOR_UNTRUSTED_CALLER
|
INTERFACESAFE_FOR_UNTRUSTED_DATA
),
"expected INTERFACESAFE_FOR_UNTRUSTED_CALLER | INTERFACESAFE_FOR_UNTRUSTED_DATA got %08x
\n
"
,
enabled
);
ok_
(
__FILE__
,
line
)(
broken
(
supported
==
INTERFACESAFE_FOR_UNTRUSTED_DATA
)
||
supported
==
(
INTERFACESAFE_FOR_UNTRUSTED_CALLER
|
INTERFACESAFE_FOR_UNTRUSTED_DATA
|
INTERFACE_USES_SECURITY_MANAGER
)
/* msxml3 SP8+ */
,
"Expected (INTERFACESAFE_FOR_UNTRUSTED_CALLER | INTERFACESAFE_FOR_UNTRUSTED_DATA | INTERFACE_USES_SECURITY_MANAGER), "
"got %08x
\n
"
,
supported
);
}
static
void
test_XMLHTTP
(
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