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
fe9a28e8
Commit
fe9a28e8
authored
Sep 25, 2019
by
Hans Leidekker
Committed by
Alexandre Julliard
Sep 25, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
webservices: Simplify WsAddressMessage.
Signed-off-by:
Hans Leidekker
<
hans@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
ffd4caa5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
8 deletions
+5
-8
msg.c
dlls/webservices/msg.c
+5
-8
No files found.
dlls/webservices/msg.c
View file @
fe9a28e8
...
...
@@ -452,16 +452,13 @@ HRESULT WINAPI WsAddressMessage( WS_MESSAGE *handle, const WS_ENDPOINT_ADDRESS *
}
if
(
msg
->
state
<
WS_MESSAGE_STATE_INITIALIZED
||
msg
->
is_addressed
)
hr
=
WS_E_INVALID_OPERATION
;
else
else
if
(
addr
&&
addr
->
url
.
length
)
{
if
(
addr
&&
addr
->
url
.
length
)
if
(
!
(
msg
->
addr
.
chars
=
heap_alloc
(
addr
->
url
.
length
*
sizeof
(
WCHAR
)
)))
hr
=
E_OUTOFMEMORY
;
else
{
if
(
!
(
msg
->
addr
.
chars
=
heap_alloc
(
addr
->
url
.
length
*
sizeof
(
WCHAR
)
)))
hr
=
E_OUTOFMEMORY
;
else
{
memcpy
(
msg
->
addr
.
chars
,
addr
->
url
.
chars
,
addr
->
url
.
length
*
sizeof
(
WCHAR
)
);
msg
->
addr
.
length
=
addr
->
url
.
length
;
}
memcpy
(
msg
->
addr
.
chars
,
addr
->
url
.
chars
,
addr
->
url
.
length
*
sizeof
(
WCHAR
)
);
msg
->
addr
.
length
=
addr
->
url
.
length
;
}
}
if
(
hr
==
S_OK
)
msg
->
is_addressed
=
TRUE
;
...
...
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