From: Owen Rudge Subject: [PATCH 5/6] wsdapi: Don't include null character at the end of sent messages. Message-Id: <4179858b-1fa9-2c43-04ca-cae07d12552c@codeweavers.com> Date: Wed, 19 Sep 2018 21:29:12 +0100 Signed-off-by: Owen Rudge --- dlls/wsdapi/soap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/wsdapi/soap.c b/dlls/wsdapi/soap.c index 45f0da90e0..e1233986cc 100644 --- a/dlls/wsdapi/soap.c +++ b/dlls/wsdapi/soap.c @@ -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);