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
0fd7bb53
Commit
0fd7bb53
authored
Mar 02, 2016
by
Hans Leidekker
Committed by
Alexandre Julliard
Mar 02, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
webservices: Reject field mappings without name or namespace.
Signed-off-by:
Hans Leidekker
<
hans@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
7a6595bf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
writer.c
dlls/webservices/tests/writer.c
+4
-1
writer.c
dlls/webservices/writer.c
+1
-0
No files found.
dlls/webservices/tests/writer.c
View file @
0fd7bb53
...
...
@@ -787,9 +787,12 @@ static void test_WsWriteElement(void)
f
.
mapping
=
WS_ATTRIBUTE_FIELD_MAPPING
;
/* requires localName and ns to be set */
hr
=
WsWriteElement
(
writer
,
&
desc
,
WS_WRITE_REQUIRED_POINTER
,
NULL
,
0
,
NULL
);
hr
=
WsWriteElement
(
writer
,
&
desc
,
WS_WRITE_REQUIRED_POINTER
,
&
test
,
sizeof
(
test
)
,
NULL
);
ok
(
hr
==
E_INVALIDARG
,
"got %08x
\n
"
,
hr
);
hr
=
set_output
(
writer
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
f
.
localName
=
&
localname
;
f
.
ns
=
&
ns
;
hr
=
WsWriteElement
(
writer
,
&
desc
,
WS_WRITE_REQUIRED_POINTER
,
&
test
,
sizeof
(
test
),
NULL
);
...
...
dlls/webservices/writer.c
View file @
0fd7bb53
...
...
@@ -1323,6 +1323,7 @@ static HRESULT write_type_struct_field( struct writer *writer, WS_TYPE_MAPPING m
switch
(
desc
->
mapping
)
{
case
WS_ATTRIBUTE_FIELD_MAPPING
:
if
(
!
desc
->
localName
||
!
desc
->
ns
)
return
E_INVALIDARG
;
if
((
hr
=
write_add_attribute
(
writer
,
NULL
,
desc
->
localName
,
desc
->
ns
,
FALSE
))
!=
S_OK
)
return
hr
;
break
;
...
...
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