HLE: reject null handle in WinHttpSetOption proxy path and expand net.rs tests (1 -> 17) #1213
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!1213
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1213"
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?
@geiyiliyabumo on GitHub · 2026-11-24 16:26 UTC · original
geiyiliyabumo:test/hle-net-audit→main· +1287 −83 · 1 files · 1 commits · openSummary
Closes #1141
Full verification details and change notes are documented in #1141 (commit
d30bed4, based onmainffe310e).Verification (Windows 11 x64 MSVC)
rustfmt --edition 2024 --checkon edited files: PASScargo xtask policy: PASS (zero game files/data)cargo clippy --all-targets --locked -- -D warnings(default +--features diagnosticswhere applicable): PASSAI-assisted; synthetic tests only, no game files.
@Zipettte on GitHub · 2026-11-24 17:59 UTC · original
Tested on AMD Radeon RX 7700 XT (RDNA3, gfx1101), driver 32.0.32029.2010, Windows 11, Rust 1.98.1 MSVC at d30bed4:
cargo test -p victory-hlepasses, 111 passed / 0 failed. Workspace baseline on main (ffe310e) is green on the same machine (342 passed).Tested with AI assistance (Claude).
@Marvisak on GitHub · 2026-11-25 01:18 UTC · original · edited 2026-11-25 02:25 UTC
Automated triage for the maintainers.
Thanks for the rebase. The only change outside the tests is in
crates/victory-hle/src/modules/net.rsWinHttpSetOption: aWINHTTP_OPTION_PROXYcall with a null handle is no longer swallowed but now goes to the host'sWinHttpSetOption. Thenetmodule is offline by design, and its proxy guard exists so that no proxy setting from the title ever reaches the host. The repo rules close any change that loosens a guard innet, even a narrow one, and this change fixes no observed bug: nothing shows the title making this call or the current answer (1) causing trouble. The remaining ~1,200 lines rewrite and expand the module's tests, most of which open real loopback sockets and WinHTTP sessions. As a test-only PR that leaves the guards as they are, that part could be filed again separately, preferably in smaller pieces.This PR will be closed in 48 hours unless the author pushes a change or a maintainer removes the
triage: proposed closelabel. CI: passing.Generated by Claude Code
@geiyiliyabumo on GitHub · 2026-11-25 02:10 UTC · original
Rebased cleanly onto \main\ (\
ccfb029). \cargo test -p victory-hle --locked modules::net::tests, \cargo clippy -p victory-hle --all-targets --locked -- -D warnings, and \cargo xtask policy\ all pass.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.