Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
Patch Available
Description
Calls WinHttpQueryHeaders() sometimes return error 122 (ERROR_INSUFFICIENT_BUFFER) even if the buffer is large enough, leading TWinHTTPRequestImpl.QueryTotalResponseSize() to fail..
According to the docs, WINHTTP_QUERY_FLAG_NUMBER always returns a 32 bit number (which it indeed does), but for some strange reason since win 10 build 18636.815 passing a DWORD sized buffer is sometimes not enough anymore