Fixes a regression introduced by
aa8f97e8294b0618de0e8a45ff2adef0c4e516da.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54184
For the requests which involve additional data to be sent the application might use WinHttpWriteData() before WinHttpReceiveResponse() to pass the additional request data instead of providing the optional data to WinHttpSendRequest(). In that case server reply can't be read in send_request().
I believe the first patch straightens up state handling in receive_response() by introducing a single switch processing every incoming state and avoiding additional local variable (along with making WINHTTP_CALLBACK_STATUS_RECEIVING_RESPONSE notification handling less obscure).
--
v2: winhttp: Only read server reply in send_request() if the whole request is available.
https://gitlab.winehq.org/wine/wine/-/merge_requests/1851
Fixes a regression introduced by
aa8f97e8294b0618de0e8a45ff2adef0c4e516da.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54184
For the requests which involve additional data to be sent the application might use WinHttpWriteData() before WinHttpReceiveResponse() to pass the additional request data instead of providing the optional data to WinHttpSendRequest(). In that case server reply can't be read in send_request().
I believe the first patch straightens up state handling in receive_response() by introducing a single switch processing every incoming state and avoiding additional local variable (along with making WINHTTP_CALLBACK_STATUS_RECEIVING_RESPONSE notification handling less obscure).
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/1851
init_argv0_dir has conditional code for different operating systems. In
case of FreeBSD a variable remains uninitialized in the error case, yet
is then used. Fix that by handling the error case.
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/1848
Fixes a regression introduced by
cbfe940a1eaf5e158de3127b1265462bfbfb70af.
Might be related to https://bugs.winehq.org/show_bug.cgi?id=54055, I don't yet have the confirmation but this is something probably worth fixing regardless.
lpszAutoConfigUrl is used whenever WINHTTP_AUTOPROXY_CONFIG_URL is specified, regardless of WINHTTP_AUTOPROXY_AUTO_DETECT presence. Before cbfe940a1eaf5e158de3127b1265462bfbfb70af NULL lpszAutoConfigUrl went directly to GetAddrInfoW(). Now with the timeout it is relayed to aync name resolution thread and might be crashing in wcsdup(). It doesn't happen all the time as we might not be reaching download_script() at all due to prior WinHttpDetectAutoProxyConfigUrl() legitimate failure.
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/1845
They fail on the Gitlab CI. An alternative would be to mark them
todo_wine but it's not clear that there's anything we want to do here.
--
v2: d3d9/tests: Mark some of the depth bias tests as todo.
d3d9/tests: Mark a zero-size pixel test as todo.
d3d8/tests: Mark a zero-size pixel test as todo.
https://gitlab.winehq.org/wine/wine/-/merge_requests/1824