http.c: does not send null byte in HttpEndRequest
Aric Stewart
aric at codeweavers.com
Tue Nov 22 09:26:18 CST 2005
HttpEndRequest does not actually send an extra NULL byte at the end of
the request.
Help from Rob Shearman on this one.
-------------- next part --------------
Index: dlls/wininet/http.c
===================================================================
RCS file: /home/wine/wine/dlls/wininet/http.c,v
retrieving revision 1.113
diff -u -r1.113 http.c
--- dlls/wininet/http.c 22 Nov 2005 14:53:30 -0000 1.113
+++ dlls/wininet/http.c 22 Nov 2005 15:21:59 -0000
@@ -596,8 +597,6 @@
BOOL rc = FALSE;
LPWININETHTTPREQW lpwhr;
INT responseLen;
- INT cnt;
- static const char nullbuff[] = "\0";
TRACE("-->\n");
lpwhr = (LPWININETHTTPREQW) WININET_GetObject( hRequest );
@@ -611,9 +610,6 @@
lpwhr->hdr.dwFlags |= dwFlags;
lpwhr->hdr.dwContext = dwContext;
- /* End the request by sending a NULL byte */
- rc = NETCON_send(&lpwhr->netConnection, nullbuff, 1, 0, &cnt);
-
SendAsyncCallback(&lpwhr->hdr, lpwhr->hdr.dwContext,
INTERNET_STATUS_RECEIVING_RESPONSE, NULL, 0);
More information about the wine-patches
mailing list