HLE: clear blocked DNS lookup results #1475
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!1475
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1475/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?
@ToxicmaggotRP on GitHub · 2026-11-24 18:18 UTC · original
ToxicmaggotRP:codex/net-lookup-output→main· +79 −4 · 1 files · 2 commits · closed without mergingSummary
When VIctory blocks a DNS lookup for a non-loopback host, the four Winsock wrappers returned
WSAHOST_NOT_FOUNDbut left the caller's*resultunchanged. A caller that reused a result variable could therefore retain a stale pointer after a failed lookup.Changes
getaddrinfo,GetAddrInfoW,GetAddrInfoExA, andGetAddrInfoExWcalls.This follows the API-compatibility practice illustrated by XCL's native API comparison for
RegisterClassExA; this patch is an independent VIctory implementation and contains no copied XCL code. Refs #1242 (VIC-BT-023).Validation
cargo test --locked -p victory-hle— 95 passed; integration test 1 passed.rustfmt --edition 2024 --check crates/victory-hle/src/modules/net.rs— passed.git diff --check— passed.cargo fmt --all -- --checkreports existing formatting differences in untouched files.@acetonahard-code on GitHub · 2026-11-24 21:10 UTC · original
Heads-up: #1411 (opened about half an hour earlier) adds the same helper. A blocked forward lookup clears
*resultand returnsWSAHOST_NOT_FOUND, in the same four wrappers. The two conflict innet.rs.Tested on Windows 11 with the repo toolchain, merged into current
main(ffe310e):cargo test -p victory-hlemainmain+ this PRcargo clippy --all-targets -- -D warnings, with and without--all-features: clean.I didn't test with game data.
Tested locally with an AI-assisted script (Claude Code); I checked the results before posting.
Pull request closed