Commit 9efe083e authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

wininet: HTTP_HttpQueryInfoW deals with bytes, not characters so update the…

wininet: HTTP_HttpQueryInfoW deals with bytes, not characters so update the callers that have this wrong assumption.
parent 7b002a39
......@@ -665,7 +665,7 @@ BOOL WINAPI HttpEndRequestW(HINTERNET hRequest,
(dwCode==302 || dwCode==301))
{
WCHAR szNewLocation[2048];
dwBufferSize=2048;
dwBufferSize=sizeof(szNewLocation);
if(HTTP_HttpQueryInfoW(lpwhr,HTTP_QUERY_LOCATION,szNewLocation,&dwBufferSize,NULL))
{
static const WCHAR szGET[] = { 'G','E','T', 0 };
......@@ -2373,7 +2373,7 @@ BOOL WINAPI HTTP_HttpSendRequestW(LPWININETHTTPREQW lpwhr, LPCWSTR lpszHeaders,
{
DWORD dwCode,dwCodeLength=sizeof(DWORD);
WCHAR szNewLocation[2048];
dwBufferSize=2048;
dwBufferSize=sizeof(szNewLocation);
if (HTTP_HttpQueryInfoW(lpwhr,HTTP_QUERY_FLAG_NUMBER|HTTP_QUERY_STATUS_CODE,&dwCode,&dwCodeLength,NULL) &&
(dwCode==HTTP_STATUS_REDIRECT || dwCode==HTTP_STATUS_MOVED) &&
HTTP_HttpQueryInfoW(lpwhr,HTTP_QUERY_LOCATION,szNewLocation,&dwBufferSize,NULL))
......@@ -2988,7 +2988,7 @@ static VOID HTTP_CloseConnection(LPWININETHTTPREQW lpwhr)
BOOL HTTP_FinishedReading(LPWININETHTTPREQW lpwhr)
{
WCHAR szConnectionResponse[20];
DWORD dwBufferSize = sizeof(szConnectionResponse)/sizeof(szConnectionResponse[0]);
DWORD dwBufferSize = sizeof(szConnectionResponse);
TRACE("\n");
......
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