wininet: Reset buffer size before each call to HTTP_HttpQueryInfoW.
commit3b052877e46c7ae7cbedfd8f71ea58b691504dc8
authorDmitry Timoshkov <dmitry@baikal.ru>
Thu, 3 Jun 2021 14:01:06 +0000 (3 17:01 +0300)
committerAlexandre Julliard <julliard@winehq.org>
Fri, 4 Jun 2021 18:00:30 +0000 (4 20:00 +0200)
tree15523aa112c04a251fc27563b33af5071d3abd0c
parentf58505d1db7ae7b041976ef8e1e4b6fc7a0a1d63
wininet: Reset buffer size before each call to HTTP_HttpQueryInfoW.

Otherwise when headers contain multiple entries like

WWW-Authenticate: Negotiate
WWW-Authenticate: Basic realm="SAMPLE.COM"

then 2nd query fails because buffer size is shorter than the header value.

Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/wininet/http.c