Wine: fall back where ws2_32 lacks exports; hook and cfg fixes #217
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!217
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/217/head"
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?
@Naitrate on GitHub · 2026-11-24 01:32 UTC · original
Naitrate:wine-host-fallbacks→main· +145 −19 · 3 files · 1 commits · closed without mergingWhat
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
@Bushyon on GitHub · 2026-11-24 02:27 UTC · original
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)dbbe37d@Marvisak on GitHub · 2026-11-25 00:00 UTC · original
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.
@Naitrate on GitHub · 2026-11-25 04:18 UTC · original
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