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
9616d258
Commit
9616d258
authored
Mar 20, 2020
by
Hans Leidekker
Committed by
Alexandre Julliard
Mar 20, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
webservices: Implement WS_ANY_ATTRIBUTES_FIELD_MAPPING for the writer.
Signed-off-by:
Hans Leidekker
<
hans@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
05b774fb
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
2 deletions
+15
-2
reader.c
dlls/webservices/reader.c
+3
-0
writer.c
dlls/webservices/tests/writer.c
+9
-2
writer.c
dlls/webservices/writer.c
+3
-0
No files found.
dlls/webservices/reader.c
View file @
9616d258
...
...
@@ -6085,6 +6085,9 @@ ULONG get_type_size( WS_TYPE type, const void *desc )
const
WS_UNION_DESCRIPTION
*
desc_union
=
desc
;
return
desc_union
->
size
;
}
case
WS_ANY_ATTRIBUTES_TYPE
:
return
0
;
default:
ERR
(
"unhandled type %u
\n
"
,
type
);
return
0
;
...
...
dlls/webservices/tests/writer.c
View file @
9616d258
...
...
@@ -1586,10 +1586,11 @@ static void test_complex_struct_type(void)
WS_XML_BUFFER
*
buffer
;
WS_XML_WRITER
*
writer
;
WS_STRUCT_DESCRIPTION
s
,
s2
;
WS_FIELD_DESCRIPTION
f
,
f2
,
*
fields
[
1
],
*
fields2
[
1
];
WS_FIELD_DESCRIPTION
f
,
f2
,
f3
,
*
fields
[
1
],
*
fields2
[
2
];
struct
services
{
const
WCHAR
*
generationtime
;
BYTE
dummy
[
12
];
};
struct
officeconfig
{
...
...
@@ -1619,11 +1620,17 @@ static void test_complex_struct_type(void)
f2
.
options
=
WS_FIELD_OPTIONAL
;
fields2
[
0
]
=
&
f2
;
memset
(
&
f3
,
0
,
sizeof
(
f3
)
);
f3
.
mapping
=
WS_ANY_ATTRIBUTES_FIELD_MAPPING
;
f3
.
type
=
WS_ANY_ATTRIBUTES_TYPE
;
f3
.
offset
=
FIELD_OFFSET
(
struct
services
,
dummy
);
fields2
[
1
]
=
&
f3
;
memset
(
&
s2
,
0
,
sizeof
(
s2
)
);
s2
.
size
=
sizeof
(
*
test
->
services
);
s2
.
alignment
=
4
;
s2
.
fields
=
fields2
;
s2
.
fieldCount
=
1
;
s2
.
fieldCount
=
2
;
s2
.
typeLocalName
=
&
str_services
;
s2
.
typeNs
=
&
ns
;
...
...
dlls/webservices/writer.c
View file @
9616d258
...
...
@@ -3831,6 +3831,9 @@ static HRESULT write_type_field( struct writer *writer, const WS_FIELD_DESCRIPTI
}
break
;
case
WS_ANY_ATTRIBUTES_FIELD_MAPPING
:
return
S_OK
;
default:
FIXME
(
"field mapping %u not supported
\n
"
,
desc
->
mapping
);
return
E_NOTIMPL
;
...
...
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