Commit 1fa0e443 authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

wininet/tests: Don't include the trailing '\0' in dwHeadersLength otherwise…

wininet/tests: Don't include the trailing '\0' in dwHeadersLength otherwise HttpSendRequestEx() sends it too which some servers object to.
parent abfa73b5
...@@ -894,8 +894,8 @@ static void HttpSendRequestEx_test(void) ...@@ -894,8 +894,8 @@ static void HttpSendRequestEx_test(void)
BufferIn.dwStructSize = sizeof( INTERNET_BUFFERS); BufferIn.dwStructSize = sizeof( INTERNET_BUFFERS);
BufferIn.Next = (LPINTERNET_BUFFERS)0xdeadcab; BufferIn.Next = (LPINTERNET_BUFFERS)0xdeadcab;
BufferIn.lpcszHeader = szContentType; BufferIn.lpcszHeader = szContentType;
BufferIn.dwHeadersLength = sizeof(szContentType); BufferIn.dwHeadersLength = sizeof(szContentType)-1;
BufferIn.dwHeadersTotal = sizeof(szContentType); BufferIn.dwHeadersTotal = sizeof(szContentType)-1;
BufferIn.lpvBuffer = szPostData; BufferIn.lpvBuffer = szPostData;
BufferIn.dwBufferLength = 3; BufferIn.dwBufferLength = 3;
BufferIn.dwBufferTotal = sizeof(szPostData)-1; BufferIn.dwBufferTotal = sizeof(szPostData)-1;
......
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