Fix string length return from HttpQueryInfoA.

This commit is contained in:
Robert Shearman 2004-07-20 01:21:08 +00:00 committed by Alexandre Julliard
parent 850dcad17d
commit 907ac44aa7
1 changed files with 6 additions and 0 deletions

View File

@ -1164,6 +1164,12 @@ BOOL WINAPI HttpQueryInfoA(HINTERNET hHttpRequest, DWORD dwInfoLevel,
lpBuffer, *lpdwBufferLength, NULL, NULL );
*lpdwBufferLength = len * sizeof(WCHAR);
}
else
/* since the strings being returned from HttpQueryInfoW should be
* only ASCII characters, it is reasonable to assume that all of
* the Unicode characters can be reduced to a single byte */
*lpdwBufferLength = len / sizeof(WCHAR);
HeapFree(GetProcessHeap(), 0, bufferW );
return result;