wsdapi: Don't include null character at the end of sent messages.

Signed-off-by: Owen Rudge <orudge@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Owen Rudge 2018-09-19 21:29:12 +01:00 committed by Alexandre Julliard
parent ed3670eef0
commit b5342b2543
1 changed files with 2 additions and 2 deletions

View File

@ -919,12 +919,12 @@ static HRESULT write_and_send_message(IWSDiscoveryPublisherImpl *impl, WSD_SOAP_
if (remote_address == NULL)
{
/* Send the message via UDP multicast */
ret = send_udp_multicast(impl, full_xml, xml_length + xml_header_len + 1, max_initial_delay) ? S_OK : E_FAIL;
ret = send_udp_multicast(impl, full_xml, xml_length + xml_header_len, max_initial_delay) ? S_OK : E_FAIL;
}
else
{
/* Send the message via UDP unicast */
ret = send_udp_unicast(full_xml, xml_length + xml_header_len + 1, remote_address, max_initial_delay);
ret = send_udp_unicast(full_xml, xml_length + xml_header_len, remote_address, max_initial_delay);
}
heap_free(full_xml);