Wine: fall back where ws2_32 lacks exports; hook and cfg fixes #217
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/217"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from Marvisak/VIctory. Originally posted by Naitrate on 2026-11-24T01:32:21Z.
What
Three small fixes for running VIctory under Wine or Proton. They work with either Linux toolchain, including the one in #191, and are split out of #195, which was closed as a duplicate of #191.
ws2_32.dlllacksWSAConnectByListandGetAddrInfoExA, and itswinhttp.dlllacksWinHttpGetProxySettingsEx. Forwarding to the first two panicked withthe host lacks ws2_32.dll!..., so a title call ended the run.WSAConnectByListnow tries each vetted candidate in turn withconnectwhen the host has noWSAConnectByList. It blocks, and the timeout isn't honoured.GetAddrInfoExAanswersWSAHOST_NOT_FOUNDwhen the host lacks it, as it already does for a blocked name.WinHttpGetProxySettingsExnever reaches the host. The export test exempts all three, and a new test covers theconnectfallback.view_formatis#[cfg(windows)], likehost_resource, its only callee.victory-gpufailed to compile on non-Windows hosts withcannot find function host_resource..githooks/pre-commitis executable (100755). Git ignored the hook on Linux even aftercargo xtask install-hooksreported it as installed, so the asset-policy check never ran on commit.Why
Found while running VIctory under Wine 11.21 with VKD3D-Proton.
only_loopback_is_reachablepanicked onws2_32.dll lacks WSAConnectByList, and a title connecting throughWSAConnectByListwould end the same way.Testing
x86_64-pc-windows-msvc),cargo test -p victory-hlepasses all 87 tests, includingonly_loopback_is_reachableand the newconnect_by_list_falls_back_to_connect.cargo check -p victory-gpupasses natively on Linux.asset policy: 3 files ok).Not run on Windows. There,
WSAConnectByListandGetAddrInfoExAstill forward to the host as before, since the host exports them.🤖 Generated with Claude Code
Imported from Marvisak/VIctory. Originally posted by Bushyon on 2026-11-24T02:27:50Z.
Tested
dbbe37dunder Wine on Linux:only_loopback_is_reachablegoes from failing to passing, and the newconnect_by_list_falls_back_to_connectpasses.Setup: Fedora 44, RX 7800 XT (RADV 26.2.6). Proton Experimental 11.0-20261112 (
wine-11.0, vkd3d-proton2576c0b4a, DXVK dxgi), its own prefix. Debug test binaries cross-built forx86_64-pc-windows-msvcwith clang-cl, lld-link and xwin (rustc 1.98.1).cargo test -p victory-hle --lib:maind2a4baeonly_loopback_is_reachable, panics atnet.rs:1058)dbbe37dImported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T00:00:42Z.
Automated triage for the maintainers. Closing because it is outside the project's scope (VIctory targets Windows hosts; ports, launchers and tooling for other platforms are not being taken).
Out of scope: fallbacks for exports Wine's ws2_32 lacks (real Windows has them), a non-Windows cfg in victory-gpu and the pre-commit hook's file mode, all for running under Wine/Proton on Linux. The network guard is not loosened.
If this is mistaken, reply here with what was missed (or push a change and say so) and it will be looked at again. Thank you for the contribution.
Imported from Marvisak/VIctory. Originally posted by Naitrate on 2026-11-25T04:18:41Z.
Thanks for taking a look. Nothing was missed: these only matter under Wine, and real Windows hosts have the exports. I'll keep them in my fork.
Pull request closed