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
d8f230f2
Commit
d8f230f2
authored
Aug 03, 2022
by
Shaun Ren
Committed by
Alexandre Julliard
Aug 05, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
webservices: Fill in type description for WS_FAULT_TYPE if necessary in WsReadBody.
Signed-off-by:
Shaun Ren
<
sren@codeweavers.com
>
parent
dfd6cb97
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
1 deletion
+19
-1
msg.c
dlls/webservices/msg.c
+19
-1
No files found.
dlls/webservices/msg.c
View file @
d8f230f2
...
...
@@ -1042,6 +1042,8 @@ HRESULT WINAPI WsReadBody( WS_MESSAGE *handle, const WS_ELEMENT_DESCRIPTION *des
WS_HEAP
*
heap
,
void
*
value
,
ULONG
size
,
WS_ERROR
*
error
)
{
struct
msg
*
msg
=
(
struct
msg
*
)
handle
;
WS_ELEMENT_DESCRIPTION
tmp
;
WS_FAULT_DESCRIPTION
fault_desc
;
HRESULT
hr
;
TRACE
(
"%p %p %u %p %p %lu %p
\n
"
,
handle
,
desc
,
option
,
heap
,
value
,
size
,
error
);
...
...
@@ -1058,7 +1060,23 @@ HRESULT WINAPI WsReadBody( WS_MESSAGE *handle, const WS_ELEMENT_DESCRIPTION *des
}
if
(
msg
->
state
!=
WS_MESSAGE_STATE_READING
)
hr
=
WS_E_INVALID_OPERATION
;
else
hr
=
WsReadElement
(
msg
->
reader_body
,
desc
,
option
,
heap
,
value
,
size
,
NULL
);
else
{
if
(
!
desc
->
typeDescription
)
{
if
(
desc
->
type
==
WS_FAULT_TYPE
)
{
memcpy
(
&
tmp
,
desc
,
sizeof
(
*
desc
)
);
fault_desc
.
envelopeVersion
=
msg
->
version_env
;
tmp
.
typeDescription
=
&
fault_desc
;
desc
=
&
tmp
;
}
else
if
(
desc
->
type
==
WS_ENDPOINT_ADDRESS_TYPE
)
FIXME
(
"!desc->typeDescription with WS_ENDPOINT_ADDRESS_TYPE
\n
"
);
}
hr
=
WsReadElement
(
msg
->
reader_body
,
desc
,
option
,
heap
,
value
,
size
,
NULL
);
}
LeaveCriticalSection
(
&
msg
->
cs
);
TRACE
(
"returning %#lx
\n
"
,
hr
);
...
...
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