Commit b5342b25 authored by Owen Rudge's avatar Owen Rudge Committed by Alexandre Julliard

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

parent ed3670ee
...@@ -919,12 +919,12 @@ static HRESULT write_and_send_message(IWSDiscoveryPublisherImpl *impl, WSD_SOAP_ ...@@ -919,12 +919,12 @@ static HRESULT write_and_send_message(IWSDiscoveryPublisherImpl *impl, WSD_SOAP_
if (remote_address == NULL) if (remote_address == NULL)
{ {
/* Send the message via UDP multicast */ /* 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 else
{ {
/* Send the message via UDP unicast */ /* 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); heap_free(full_xml);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment