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
19f540db
Commit
19f540db
authored
Sep 06, 2017
by
Hans Leidekker
Committed by
Alexandre Julliard
Sep 06, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
webservices: Implement WsSendReplyMessage.
Signed-off-by:
Hans Leidekker
<
hans@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
ffbddae5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
1 deletion
+40
-1
channel.c
dlls/webservices/channel.c
+39
-0
webservices.spec
dlls/webservices/webservices.spec
+1
-1
No files found.
dlls/webservices/channel.c
View file @
19f540db
...
...
@@ -1126,6 +1126,45 @@ done:
return
hr
;
}
/**************************************************************************
* WsSendReplyMessage [webservices.@]
*/
HRESULT
WINAPI
WsSendReplyMessage
(
WS_CHANNEL
*
handle
,
WS_MESSAGE
*
msg
,
const
WS_MESSAGE_DESCRIPTION
*
desc
,
WS_WRITE_OPTION
option
,
const
void
*
body
,
ULONG
size
,
WS_MESSAGE
*
request
,
const
WS_ASYNC_CONTEXT
*
ctx
,
WS_ERROR
*
error
)
{
struct
channel
*
channel
=
(
struct
channel
*
)
handle
;
HRESULT
hr
;
TRACE
(
"%p %p %p %08x %p %u %p %p %p
\n
"
,
handle
,
msg
,
desc
,
option
,
body
,
size
,
request
,
ctx
,
error
);
if
(
error
)
FIXME
(
"ignoring error parameter
\n
"
);
if
(
ctx
)
FIXME
(
"ignoring ctx parameter
\n
"
);
if
(
!
channel
||
!
msg
||
!
desc
||
!
request
)
return
E_INVALIDARG
;
EnterCriticalSection
(
&
channel
->
cs
);
if
(
channel
->
magic
!=
CHANNEL_MAGIC
)
{
LeaveCriticalSection
(
&
channel
->
cs
);
return
E_INVALIDARG
;
}
if
((
hr
=
WsInitializeMessage
(
msg
,
WS_REPLY_MESSAGE
,
NULL
,
NULL
))
!=
S_OK
)
goto
done
;
if
((
hr
=
WsAddressMessage
(
msg
,
&
channel
->
addr
,
NULL
))
!=
S_OK
)
goto
done
;
if
((
hr
=
message_set_action
(
msg
,
desc
->
action
))
!=
S_OK
)
goto
done
;
if
((
hr
=
init_writer
(
channel
))
!=
S_OK
)
goto
done
;
if
((
hr
=
write_message
(
msg
,
channel
->
writer
,
desc
->
bodyElementDescription
,
option
,
body
,
size
))
!=
S_OK
)
goto
done
;
hr
=
send_message
(
channel
,
msg
);
done:
LeaveCriticalSection
(
&
channel
->
cs
);
FIXME
(
"returning %08x
\n
"
,
hr
);
return
hr
;
}
static
HRESULT
resize_read_buffer
(
struct
channel
*
channel
,
ULONG
size
)
{
if
(
!
channel
->
read_buf
)
...
...
dlls/webservices/webservices.spec
View file @
19f540db
...
...
@@ -144,7 +144,7 @@
@ stub WsRevokeSecurityContext
@ stub WsSendFaultMessageForError
@ stdcall WsSendMessage(ptr ptr ptr long ptr long ptr ptr)
@ st
ub WsSendReplyMessage
@ st
dcall WsSendReplyMessage(ptr ptr ptr long ptr long ptr ptr ptr)
@ stdcall WsSetChannelProperty(ptr long ptr long ptr)
@ stdcall WsSetErrorProperty(ptr long ptr long)
@ stub WsSetFaultErrorDetail
...
...
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