mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 10:41:12 +00:00
Fix string length return from HttpQueryInfoA.
This commit is contained in:
parent
850dcad17d
commit
907ac44aa7
1 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue