HLE tests: Windows 10's winhttp.dll may lack WinHttpGetProxySettingsEx (#118) #349
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/349"
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 justrealyme on 2026-11-24T02:30:10Z.
Fixes #118.
What
only_loopback_is_reachable(incrates/victory-hle/src/modules/net.rs) checks that every function the net module overrides is also exported by the host DLL. Windows 10'swinhttp.dlldoes not exportWinHttpGetProxySettingsEx, so the test panics there.The title always binds to our override, never to the host's function, so a missing host export does not matter at runtime. The test now skips the exports newer than the oldest supported host (a one-entry list,
NEWER_THAN_WINDOWS_10) and still checks all the others.Testing
rustfmt --checkon the changed file passes.cargo test -p victory-hlepasses on Windows.No game data involved. AI-assisted (Claude Code).
Imported from Marvisak/VIctory. Originally posted by jeremygold02 on 2026-11-24T03:00:07Z.
Thanks @justrealyme and @Makto94. These changes address the same
WinHttpGetProxySettingsExtest failure on hosts where the export is absent. #349 excludes the export unconditionally (diff); #152 skips it only when the host lacks it, so the test still checks the export where it exists (diff). That conditional behavior makes #152 the stronger candidate to keep if maintainers consolidate. Please preserve #349's report and credit in that decision. This is for maintainers to decide.Imported from Marvisak/VIctory. Originally posted by mercuryVM on 2026-11-24T07:10:58Z.
Review: APPROVED
Tested
14e78f8on Windows 11, RTX 5070, MSVC:cargo test --workspace --no-fail-fastpasses (264 passed, 0 failed), includingonly_loopback_is_reachable. You wrote that it had not been run on Windows yet, so it now has.WinHttpGetProxySettingsExis exempt, and every other override is still asserted to exist, so a typo still fails the test. This is the right shape. #256 tries to fix the same #118 with a check that skips every missing export, which leaves the assert unreachable.No issues found.
AI-assisted (Claude Code).
Pull request closed