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

Alexandre Julliard julliard at winehq.org
Thu Sep 20 13:45:32 CDT 2018


Module: wine
Branch: master
Commit: b5342b2543872c6a5e21dc09db763388bbce07c2
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=b5342b2543872c6a5e21dc09db763388bbce07c2

Author: Owen Rudge <orudge at codeweavers.com>
Date:   Wed Sep 19 21:29:12 2018 +0100

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

Signed-off-by: Owen Rudge <orudge at codeweavers.com>
Signed-off-by: Huw Davies <huw at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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 45f0da9..e123398 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);




More information about the wine-cvs mailing list