mirror of
https://github.com/reactos/reactos.git
synced 2025-07-30 19:41:57 +00:00
[WININET]
- Apply Wine commit 8fd44a3d (wininet: Fix invalid memory access in HTTP_QUERY_RAW_HEADERS (Valgrind).) by Sebastian Lackner. Fixes crash in wininet:http InternetReadFile_test svn path=/trunk/; revision=63724
This commit is contained in:
parent
737295142c
commit
18ad0bd565
1 changed files with 2 additions and 2 deletions
|
@ -3568,12 +3568,12 @@ static DWORD HTTP_HttpQueryInfoW(http_request_t *request, DWORD dwInfoLevel,
|
|||
|
||||
TRACE("returning data: %s\n", debugstr_wn(headers, len / sizeof(WCHAR)));
|
||||
|
||||
for (i=0; i<len; i++)
|
||||
for (i = 0; i < len / sizeof(WCHAR); i++)
|
||||
{
|
||||
if (headers[i] == '\n')
|
||||
headers[i] = 0;
|
||||
}
|
||||
memcpy(lpBuffer, headers, len + sizeof(WCHAR));
|
||||
memcpy(lpBuffer, headers, len);
|
||||
}
|
||||
*lpdwBufferLength = len - sizeof(WCHAR);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue