Francois Gouget : wininet/tests: Don't include the trailing '\0' in dwHeadersLength otherwise HttpSendRequestEx() sends it too which some servers object to.
Alexandre Julliard
julliard at winehq.org
Tue Feb 19 08:05:17 CST 2008
Module: wine
Branch: master
Commit: 1fa0e443e356af0d544e2315790fbb36ef500db3
URL: http://source.winehq.org/git/wine.git/?a=commit;h=1fa0e443e356af0d544e2315790fbb36ef500db3
Author: Francois Gouget <fgouget at free.fr>
Date: Tue Feb 19 00:20:50 2008 +0100
wininet/tests: Don't include the trailing '\0' in dwHeadersLength otherwise HttpSendRequestEx() sends it too which some servers object to.
---
dlls/wininet/tests/http.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/wininet/tests/http.c b/dlls/wininet/tests/http.c
index 4aed85d..fb561c4 100644
--- a/dlls/wininet/tests/http.c
+++ b/dlls/wininet/tests/http.c
@@ -894,8 +894,8 @@ static void HttpSendRequestEx_test(void)
BufferIn.dwStructSize = sizeof( INTERNET_BUFFERS);
BufferIn.Next = (LPINTERNET_BUFFERS)0xdeadcab;
BufferIn.lpcszHeader = szContentType;
- BufferIn.dwHeadersLength = sizeof(szContentType);
- BufferIn.dwHeadersTotal = sizeof(szContentType);
+ BufferIn.dwHeadersLength = sizeof(szContentType)-1;
+ BufferIn.dwHeadersTotal = sizeof(szContentType)-1;
BufferIn.lpvBuffer = szPostData;
BufferIn.dwBufferLength = 3;
BufferIn.dwBufferTotal = sizeof(szPostData)-1;
More information about the wine-cvs
mailing list