Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
b0077f06
Commit
b0077f06
authored
Jun 21, 2016
by
Hans Leidekker
Committed by
Alexandre Julliard
Jun 22, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
webservices: Accept zero write option in WsWriteType.
Signed-off-by:
Hans Leidekker
<
hans@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
9a51526b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
writer.c
dlls/webservices/writer.c
+9
-9
No files found.
dlls/webservices/writer.c
View file @
b0077f06
...
...
@@ -1424,55 +1424,55 @@ static HRESULT write_type( struct writer *writer, WS_TYPE_MAPPING mapping, WS_TY
case
WS_BOOL_TYPE
:
{
const
BOOL
*
ptr
=
value
;
if
(
option
!=
WS_WRITE_REQUIRED_VALUE
||
size
!=
sizeof
(
*
ptr
))
return
E_INVALIDARG
;
if
(
(
option
&&
option
!=
WS_WRITE_REQUIRED_VALUE
)
||
size
!=
sizeof
(
*
ptr
))
return
E_INVALIDARG
;
return
write_type_bool
(
writer
,
mapping
,
desc
,
ptr
);
}
case
WS_INT8_TYPE
:
{
const
INT8
*
ptr
=
value
;
if
(
option
!=
WS_WRITE_REQUIRED_VALUE
||
size
!=
sizeof
(
*
ptr
))
return
E_INVALIDARG
;
if
(
(
option
&&
option
!=
WS_WRITE_REQUIRED_VALUE
)
||
size
!=
sizeof
(
*
ptr
))
return
E_INVALIDARG
;
return
write_type_int8
(
writer
,
mapping
,
desc
,
ptr
);
}
case
WS_INT16_TYPE
:
{
const
INT16
*
ptr
=
value
;
if
(
option
!=
WS_WRITE_REQUIRED_VALUE
||
size
!=
sizeof
(
*
ptr
))
return
E_INVALIDARG
;
if
(
(
option
&&
option
!=
WS_WRITE_REQUIRED_VALUE
)
||
size
!=
sizeof
(
*
ptr
))
return
E_INVALIDARG
;
return
write_type_int16
(
writer
,
mapping
,
desc
,
ptr
);
}
case
WS_INT32_TYPE
:
{
const
INT32
*
ptr
=
value
;
if
(
option
!=
WS_WRITE_REQUIRED_VALUE
||
size
!=
sizeof
(
*
ptr
))
return
E_INVALIDARG
;
if
(
(
option
&&
option
!=
WS_WRITE_REQUIRED_VALUE
)
||
size
!=
sizeof
(
*
ptr
))
return
E_INVALIDARG
;
return
write_type_int32
(
writer
,
mapping
,
desc
,
ptr
);
}
case
WS_INT64_TYPE
:
{
const
INT64
*
ptr
=
value
;
if
(
option
!=
WS_WRITE_REQUIRED_VALUE
||
size
!=
sizeof
(
*
ptr
))
return
E_INVALIDARG
;
if
(
(
option
&&
option
!=
WS_WRITE_REQUIRED_VALUE
)
||
size
!=
sizeof
(
*
ptr
))
return
E_INVALIDARG
;
return
write_type_int64
(
writer
,
mapping
,
desc
,
ptr
);
}
case
WS_UINT8_TYPE
:
{
const
UINT8
*
ptr
=
value
;
if
(
option
!=
WS_WRITE_REQUIRED_VALUE
||
size
!=
sizeof
(
*
ptr
))
return
E_INVALIDARG
;
if
(
(
option
&&
option
!=
WS_WRITE_REQUIRED_VALUE
)
||
size
!=
sizeof
(
*
ptr
))
return
E_INVALIDARG
;
return
write_type_uint8
(
writer
,
mapping
,
desc
,
ptr
);
}
case
WS_UINT16_TYPE
:
{
const
UINT16
*
ptr
=
value
;
if
(
option
!=
WS_WRITE_REQUIRED_VALUE
||
size
!=
sizeof
(
*
ptr
))
return
E_INVALIDARG
;
if
(
(
option
&&
option
!=
WS_WRITE_REQUIRED_VALUE
)
||
size
!=
sizeof
(
*
ptr
))
return
E_INVALIDARG
;
return
write_type_uint16
(
writer
,
mapping
,
desc
,
ptr
);
}
case
WS_UINT32_TYPE
:
{
const
UINT32
*
ptr
=
value
;
if
(
option
!=
WS_WRITE_REQUIRED_VALUE
||
size
!=
sizeof
(
*
ptr
))
return
E_INVALIDARG
;
if
(
(
option
&&
option
!=
WS_WRITE_REQUIRED_VALUE
)
||
size
!=
sizeof
(
*
ptr
))
return
E_INVALIDARG
;
return
write_type_uint32
(
writer
,
mapping
,
desc
,
ptr
);
}
case
WS_UINT64_TYPE
:
{
const
UINT64
*
ptr
=
value
;
if
(
option
!=
WS_WRITE_REQUIRED_VALUE
||
size
!=
sizeof
(
*
ptr
))
return
E_INVALIDARG
;
if
(
(
option
&&
option
!=
WS_WRITE_REQUIRED_VALUE
)
||
size
!=
sizeof
(
*
ptr
))
return
E_INVALIDARG
;
return
write_type_uint64
(
writer
,
mapping
,
desc
,
ptr
);
}
case
WS_WSZ_TYPE
:
...
...
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