net: only_loopback_is_reachable test panics on Windows 10 (WinHttpGetProxySettingsEx missing) #118

Closed
opened 2026-11-26 03:50:56 +00:00 by github-bot · 0 comments
Owner

@⁠noviw-rblx on GitHub · 2026-11-24 00:40 UTC · original

Problem

cargo test --workspace fails on Windows 10 with:

thread 'modules::net::tests::only_loopback_is_reachable' panicked at crates/victory-hle/src/modules/net.rs:1058:13:
winhttp.dll lacks WinHttpGetProxySettingsEx

The test asserts that every HLE override names a real export of its host DLL. WinHttpGetProxySettingsEx is provided by the HLE itself (it returns no_auto_proxy()) and is absent from winhttp.dll on Windows 10 (it only exists on newer Windows).

Root cause

The host-presence assertion is too strict for HLE-provided functions that may not exist on every supported Windows version.

Suggested fix

Skip the assertion for exports the host doesn't have (the HLE supplies them itself):

if crate::host::function(dll, e.name).is_none() {
    continue;
}

Verified on Windows 10 (CPython/Rust 1.98.1): cargo test -p victory-hle --lib net → 2 passed, 0 failed (was 1 failure). No game data required.

Environment

  • Windows 10
  • Rust 1.98.1 (48a229cea)
  • cargo 1.98.1
**@⁠noviw-rblx** on GitHub · 2026-11-24 00:40 UTC · [original](https://github.com/Marvisak/VIctory/issues/118) ## Problem `cargo test --workspace` fails on Windows 10 with: ``` thread 'modules::net::tests::only_loopback_is_reachable' panicked at crates/victory-hle/src/modules/net.rs:1058:13: winhttp.dll lacks WinHttpGetProxySettingsEx ``` The test asserts that every HLE override names a real export of its host DLL. `WinHttpGetProxySettingsEx` is provided by the HLE itself (it returns `no_auto_proxy()`) and is absent from `winhttp.dll` on Windows 10 (it only exists on newer Windows). ## Root cause The host-presence assertion is too strict for HLE-provided functions that may not exist on every supported Windows version. ## Suggested fix Skip the assertion for exports the host doesn't have (the HLE supplies them itself): ```rust if crate::host::function(dll, e.name).is_none() { continue; } ``` Verified on Windows 10 (CPython/Rust 1.98.1): `cargo test -p victory-hle --lib net` → 2 passed, 0 failed (was 1 failure). No game data required. ## Environment - Windows 10 - Rust 1.98.1 (48a229cea) - cargo 1.98.1
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:50:56 +00:00
This discussion has been locked. Commenting is limited to contributors.
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#118
No description provided.