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
a808821d
Commit
a808821d
authored
Oct 03, 2017
by
Hans Leidekker
Committed by
Alexandre Julliard
Oct 03, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
webservices: Simplify get_field_size.
Signed-off-by:
Hans Leidekker
<
hans@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
160f5b23
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
22 deletions
+2
-22
reader.c
dlls/webservices/reader.c
+2
-22
No files found.
dlls/webservices/reader.c
View file @
a808821d
...
...
@@ -7311,28 +7311,8 @@ HRESULT get_param_desc( const WS_STRUCT_DESCRIPTION *desc, USHORT index, const W
static
ULONG
get_field_size
(
const
WS_FIELD_DESCRIPTION
*
desc
)
{
WS_READ_OPTION
option
;
ULONG
size
;
switch
((
option
=
get_field_read_option
(
desc
->
type
,
desc
->
options
)))
{
case
WS_READ_REQUIRED_POINTER
:
case
WS_READ_OPTIONAL_POINTER
:
case
WS_READ_NILLABLE_POINTER
:
size
=
sizeof
(
void
*
);
break
;
case
WS_READ_REQUIRED_VALUE
:
case
WS_READ_NILLABLE_VALUE
:
size
=
get_type_size
(
desc
->
type
,
desc
->
typeDescription
);
break
;
default:
WARN
(
"unhandled option %u
\n
"
,
option
);
return
0
;
}
return
size
;
if
(
desc
->
options
&
WS_FIELD_POINTER
)
return
sizeof
(
void
*
);
return
get_type_size
(
desc
->
type
,
desc
->
typeDescription
);
}
static
HRESULT
read_param
(
struct
reader
*
reader
,
const
WS_FIELD_DESCRIPTION
*
desc
,
WS_HEAP
*
heap
,
void
*
ret
)
...
...
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