HLE tests: Windows 10's winhttp.dll may lack WinHttpGetProxySettingsEx (#118) #349

Closed
github-bot wants to merge 1 commit from gh-pr/349/head into gh-pr/349/base
Owner

@⁠justrealyme on GitHub · 2026-11-24 02:30 UTC · original
justrealyme:fix/winhttp-proxy-settings-ex-win10 → main · +10 −2 · 1 files · 1 commits · closed without merging

Fixes #118.

What

only_loopback_is_reachable (in crates/victory-hle/src/modules/net.rs) checks that every function the net module overrides is also exported by the host DLL. Windows 10's winhttp.dll does not export WinHttpGetProxySettingsEx, 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 --check on the changed file passes.
  • Not yet compiled or run on Windows: the change was written in a Linux container, where the crate cannot be built. Will mark ready after cargo test -p victory-hle passes on Windows.

No game data involved. AI-assisted (Claude Code).

**@⁠justrealyme** on GitHub · 2026-11-24 02:30 UTC · [original](https://github.com/Marvisak/VIctory/pull/349) `justrealyme:fix/winhttp-proxy-settings-ex-win10` → `main` · +10 −2 · 1 files · 1 commits · closed without merging Fixes #118. ## What `only_loopback_is_reachable` (in `crates/victory-hle/src/modules/net.rs`) checks that every function the net module overrides is also exported by the host DLL. Windows 10's `winhttp.dll` does not export `WinHttpGetProxySettingsEx`, 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 --check` on the changed file passes. - Not yet compiled or run on Windows: the change was written in a Linux container, where the crate cannot be built. Will mark ready after `cargo test -p victory-hle` passes on Windows. No game data involved. AI-assisted (Claude Code).
The net module overrides WinHttpGetProxySettingsEx, and the test asserted
that every override names a real export of the host DLL. Windows 10's
winhttp.dll does not export it, so only_loopback_is_reachable panicked
there. The title always reaches our override, never the host's, so the
test now skips exports newer than the oldest supported host.

Fixes #118.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01AYEAdJD1i5RZqVMY3vGzAt
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:00:09 +00:00
github-bot closed this pull request 2026-11-26 04:00:09 +00:00
Author
Owner

@⁠jeremygold02 on GitHub · 2026-11-24 03:00 UTC · original

Thanks @⁠justrealyme and @⁠Makto94. These changes address the same WinHttpGetProxySettingsEx test 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.

**@⁠jeremygold02** on GitHub · 2026-11-24 03:00 UTC · [original](https://github.com/Marvisak/VIctory/pull/349#issuecomment-7120677665) Thanks @⁠justrealyme and @⁠Makto94. These changes address the same `WinHttpGetProxySettingsEx` test failure on hosts where the export is absent. #349 excludes the export unconditionally ([diff](https://git.gtahub.st/github/Marvisak--VIctory/pulls/349/files)); #152 skips it only when the host lacks it, so the test still checks the export where it exists ([diff](https://git.gtahub.st/github/Marvisak--VIctory/pulls/152/files)). 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.

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/Marvisak--VIctory!349
No description provided.