[pr-fix][linux-proton] Network calls whose export the host lacks fail instead of ending the process #346
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
hle
input
INTEL
lighting
linux-proton
memory
MULDER
needs-info
needs-logs
needs-rebase
NVIDIA
performance
post-merge
pr-diagnostics
pr-docs
pre-merge
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
relevance
high
relevance
low
relevance
medium
relevance
very-high
rendering
report
roadmap-proposal
saves
series-s
shaders
startup
status
blocked-by-rework
status
needs-test-report
status
needs-triage
status
ready-for-review
status
stale
status
superseded
status
wip
tools
ui
upstream
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
TrustNo1/Darner!346
Loading…
Reference in a new issue
No description provided.
Delete branch "ntsthay/wine-net-missing-exports"
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?
Not run in the game. Two unit tests show the problem under Wine.
Contributor role (optional)
What it changes
Wine's
ws2_32.dllhas noWSAConnectByListand noGetAddrInfoExA. Our overrides reached the host throughhost!, which panics when the export is missing, so a title that called either one under Wine or Proton ended the process. Onf3840d7,only_loopback_is_reachablefails under Wine with "ws2_32.dll lacks WSAConnectByList".Both overrides now look the export up with
crate::host::function. When it is missing, the call fails withWSAEOPNOTSUPP, andGetAddrInfoExAalso sets the result to null. On Windows the export is there and the call goes to the host as before.I compared the exports of Proton's
ws2_32.dllandwinhttp.dllwith every network override. These two are the only ones that call the host and are missing.WinHttpGetProxySettingsExis missing too, but its override never calls the host.The tests change in the same file:
only_loopback_is_reachablelets those two exports be missing, only under Wine.the_boundary_holds_at_its_edgesstill checks the guard everywhere. It checks the loopback connection throughWSAConnectByNameWonly off Wine, because Wine'sWSAConnectByNameWreturns FALSE without connecting.How it was tested
3c12163, this branch onf3840d7.cargo nextest run -p darner-hle -E 'test(/modules::net::/)'under Proton (proton-cachyos, RTX 4080): 4 passed. Onf3840d7two of them fail.cargo clippy --workspace --all-targets --locked -- -D warnings, and the same with--all-features) are clean. Gate 3 ran under Wine, not on Windows.Checklist
main.docs/asset-policy.md.Checked for overlap