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
202bc2a7
Commit
202bc2a7
authored
Aug 16, 2016
by
Hans Leidekker
Committed by
Alexandre Julliard
Aug 16, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
webservices: Write the envelope in WsInitializeMessage.
Signed-off-by:
Hans Leidekker
<
hans@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
17b4abf4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
24 deletions
+24
-24
msg.c
dlls/webservices/msg.c
+24
-24
No files found.
dlls/webservices/msg.c
View file @
202bc2a7
...
@@ -198,30 +198,6 @@ HRESULT WINAPI WsCreateMessageForChannel( WS_CHANNEL *channel_handle, const WS_M
...
@@ -198,30 +198,6 @@ HRESULT WINAPI WsCreateMessageForChannel( WS_CHANNEL *channel_handle, const WS_M
}
}
/**************************************************************************
/**************************************************************************
* WsInitializeMessage [webservices.@]
*/
HRESULT
WINAPI
WsInitializeMessage
(
WS_MESSAGE
*
handle
,
WS_MESSAGE_INITIALIZATION
init
,
WS_MESSAGE
*
src_handle
,
WS_ERROR
*
error
)
{
struct
msg
*
msg
=
(
struct
msg
*
)
handle
;
TRACE
(
"%p %u %p %p
\n
"
,
handle
,
init
,
src_handle
,
error
);
if
(
error
)
FIXME
(
"ignoring error parameter
\n
"
);
if
(
src_handle
)
{
FIXME
(
"src message not supported
\n
"
);
return
E_NOTIMPL
;
}
if
(
!
handle
||
init
>
WS_FAULT_MESSAGE
)
return
E_INVALIDARG
;
if
(
msg
->
state
>=
WS_MESSAGE_STATE_INITIALIZED
)
return
WS_E_INVALID_OPERATION
;
msg
->
init
=
init
;
msg
->
state
=
WS_MESSAGE_STATE_INITIALIZED
;
return
S_OK
;
}
/**************************************************************************
* WsFreeMessage [webservices.@]
* WsFreeMessage [webservices.@]
*/
*/
void
WINAPI
WsFreeMessage
(
WS_MESSAGE
*
handle
)
void
WINAPI
WsFreeMessage
(
WS_MESSAGE
*
handle
)
...
@@ -555,6 +531,30 @@ HRESULT WINAPI WsWriteBody( WS_MESSAGE *handle, const WS_ELEMENT_DESCRIPTION *de
...
@@ -555,6 +531,30 @@ HRESULT WINAPI WsWriteBody( WS_MESSAGE *handle, const WS_ELEMENT_DESCRIPTION *de
return
hr
;
return
hr
;
}
}
/**************************************************************************
* WsInitializeMessage [webservices.@]
*/
HRESULT
WINAPI
WsInitializeMessage
(
WS_MESSAGE
*
handle
,
WS_MESSAGE_INITIALIZATION
init
,
WS_MESSAGE
*
src_handle
,
WS_ERROR
*
error
)
{
struct
msg
*
msg
=
(
struct
msg
*
)
handle
;
TRACE
(
"%p %u %p %p
\n
"
,
handle
,
init
,
src_handle
,
error
);
if
(
error
)
FIXME
(
"ignoring error parameter
\n
"
);
if
(
src_handle
)
{
FIXME
(
"src message not supported
\n
"
);
return
E_NOTIMPL
;
}
if
(
!
handle
||
init
>
WS_FAULT_MESSAGE
)
return
E_INVALIDARG
;
if
(
msg
->
state
>=
WS_MESSAGE_STATE_INITIALIZED
)
return
WS_E_INVALID_OPERATION
;
msg
->
init
=
init
;
msg
->
state
=
WS_MESSAGE_STATE_INITIALIZED
;
return
write_envelope
(
msg
);
}
static
inline
void
set_utf8_text
(
WS_XML_UTF8_TEXT
*
text
,
BYTE
*
bytes
,
ULONG
len
)
static
inline
void
set_utf8_text
(
WS_XML_UTF8_TEXT
*
text
,
BYTE
*
bytes
,
ULONG
len
)
{
{
text
->
text
.
textType
=
WS_XML_TEXT_TYPE_UTF8
;
text
->
text
.
textType
=
WS_XML_TEXT_TYPE_UTF8
;
...
...
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