HLE: reject null handle in WinHttpSetOption proxy path and expand net.rs tests (1 -> 17) #1213
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from Marvisak/VIctory. Originally posted by geiyiliyabumo on 2026-11-24T16:26:31Z.
Summary
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.
Imported from Marvisak/VIctory. Originally posted by Zipettte on 2026-11-24T17:59:57Z.
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).
Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T01:18:58Z.
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
Imported from Marvisak/VIctory. Originally posted by geiyiliyabumo on 2026-11-25T02:10:42Z.
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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.