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
5eb0971b
Commit
5eb0971b
authored
Oct 25, 2016
by
Hans Leidekker
Committed by
Alexandre Julliard
Oct 25, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
webservices: Explicitly pass the offset to read_type_struct_field.
Signed-off-by:
Hans Leidekker
<
hans@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
02ee6bda
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
reader.c
dlls/webservices/reader.c
+5
-4
No files found.
dlls/webservices/reader.c
View file @
5eb0971b
...
...
@@ -3921,7 +3921,7 @@ static HRESULT read_type_text( struct reader *reader, const WS_FIELD_DESCRIPTION
}
static
HRESULT
read_type_struct_field
(
struct
reader
*
reader
,
const
WS_FIELD_DESCRIPTION
*
desc
,
WS_HEAP
*
heap
,
char
*
buf
)
WS_HEAP
*
heap
,
char
*
buf
,
ULONG
offset
)
{
char
*
ptr
;
WS_READ_OPTION
option
;
...
...
@@ -3941,7 +3941,7 @@ static HRESULT read_type_struct_field( struct reader *reader, const WS_FIELD_DES
else
size
=
sizeof
(
void
*
);
ptr
=
buf
+
desc
->
offset
;
ptr
=
buf
+
offset
;
switch
(
desc
->
mapping
)
{
case
WS_TYPE_ATTRIBUTE_FIELD_MAPPING
:
...
...
@@ -4005,7 +4005,7 @@ static HRESULT read_type_struct( struct reader *reader, WS_TYPE_MAPPING mapping,
const
WS_STRUCT_DESCRIPTION
*
desc
,
WS_READ_OPTION
option
,
WS_HEAP
*
heap
,
void
*
ret
,
ULONG
size
)
{
ULONG
i
;
ULONG
i
,
offset
;
HRESULT
hr
;
char
*
buf
;
...
...
@@ -4038,7 +4038,8 @@ static HRESULT read_type_struct( struct reader *reader, WS_TYPE_MAPPING mapping,
for
(
i
=
0
;
i
<
desc
->
fieldCount
;
i
++
)
{
if
((
hr
=
read_type_struct_field
(
reader
,
desc
->
fields
[
i
],
heap
,
buf
))
!=
S_OK
)
offset
=
desc
->
fields
[
i
]
->
offset
;
if
((
hr
=
read_type_struct_field
(
reader
,
desc
->
fields
[
i
],
heap
,
buf
,
offset
))
!=
S_OK
)
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