HLE: oleaut32 is not in the host pass-through list, so the title's BSTR ordinals do not resolve #2904
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2906"
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 Jackster on 2026-11-25T23:35:39Z.
HostPolicy::default()allowsole32.dllbut notoleaut32.dll, and the host lookup is gated on that list, so everyoleaut32.dllimport fell through to the unimplemented-import stub. A title imports two of them by ordinal, whichvictory census <dump> --missingreported as unresolved:They are
SysAllocStringLen(#4) andSysFreeString(#6).dumpbin /exportson the host's ownoleaut32.dllconfirms the ordinals:Allocating and freeing a BSTR does not differ between the console and the host, exactly like the
ole32.dllcalls already allowed next to it — the omission looked like an oversight rather than a policy decision.Change
crates/victory-hle/src/host.rs:oleaut32.dlladded to the default allow list, with a comment.crates/victory-hle/src/lib.rs:oleaut32_bstr_ordinals_pass_through_to_host, which classifies ordinals 4 and 6 asProvenance::Hostand checks that an ordinal the DLL does not export still resolves to nothing.No HLE implementations are added: the host's exports answer these, by ordinal, through the existing pass-through.
Verified
On the retail dump used for the report:
cargo test -p victory-hle: 153 passed, 0 failed. Full workspace suite (--exclude victory-core, absent from this checkout only): 0 failures.Claimed in #1633: https://github.com/Marvisak/VIctory/issues/1633#issuecomment-7177495369
AI-assisted (drafted with an AI coding agent); the census runs, the
dumpbincheck and the test runs above are my own. No game data beyond the DLL name and ordinals the census prints.Imported from Marvisak/VIctory. Originally posted by kotekompotek on 2026-11-25T23:38:14Z.
Review: COMMENTED
Verified: BSTR helpers are semantically identical host-side, and the test locks in both directions — ordinals 4/6 pass through while a non-existent ordinal resolves to nothing (so classify does real per-DLL ordinal validation, not blind pass-through). LGTM.
Imported from Marvisak/VIctory. Originally posted by fuzeofficlal on 2026-11-25T23:38:46Z.
Heads-up on overlap:
#2065(currentlytriage: merge candidatefor#811) already adds"oleaut32.dll"toHostPolicy::default()incrates/victory-hle/src/host.rsalongsideole32.dlland tests ordinal#4(SysAllocStringLen) and#6(SysFreeString) resolution.Nice addition here testing
resolve_importthroughcrates/victory-hle/src/lib.rsas well — leaving this cross-reference so maintainers can pick whichever they prefer.Imported from Marvisak/VIctory. Originally posted by Kajanos on 2026-11-26T00:07:23Z.
Windows 11 / NVIDIA test run, head
c42ee14369merged ontomain63bcca43c6.Setup: Windows 11 Home build 26300, RTX 5080, NVIDIA 621.40, rustc 1.98.1 MSVC, VS 2022 Build Tools, Windows SDK 10.0.26100 (
dxil.dllfrom the SDK).cargo test --locked -p victory-hle: 152 passed, 1 failed.lifecycle::tests::showing_a_title_window_shows_its_stand_in, and it also fails onmainin this run. The tests ran over SSH, i.e. in session 0 with no interactive desktop, so the window can't be shown. On the desktop session the same test passes onmain(12/12lifecycle). This PR doesn't touch lifecycle.Not run: the retail title, clippy, and other crates.
AI-assisted (Claude Code)
Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-26T02:18:44Z.
Automated triage for the maintainers.
Proposed close: duplicate of #2065. #2065 makes the same change, adding
"oleaut32.dll"toHostPolicy::default()incrates/victory-hle/src/host.rs. It merges cleanly, is already marked as a merge candidate, and tests ordinals 4 and 6 resolving to the host. The extraclassifytest here could be offered on #2065 instead.This PR will be closed in 48 hours unless the author pushes a change or a maintainer removes the
triage: proposed closelabel.Generated by Claude Code
Imported from Marvisak/VIctory. Originally posted by cloph-dsp on 2026-11-26T12:29:35Z.
Independent local verification of head
c42ee14on Windows 11, Rust 1.100.0/MSVC:cargo test --locked -p victory-hle --lib -- tests::oleaut32_bstr_ordinals_pass_through_to_host --exact— 1 passed, 0 failed.git diff --check origin/main HEAD— clean.Used a worktree-local
CARGO_TARGET_DIR. Synthetic ordinal inputs only; no game assets or DRM material used. AI-assisted (Hy4 flash). GPU/driver: N/A (CPU-only).Imported from Marvisak/VIctory. Originally posted by Dukestar69 on 2026-11-27T02:07:55Z.
Review: APPROVED
LGTM — verified on Windows:
oleaut32.dlltoHostPolicycleanly allows BSTR ordinals (#4SysAllocStringLen,#6SysFreeString) to pass through to the hostcargo test -p victory-hle --lib oleaut32_bstr_ordinals_pass_through_to_hostpassedcargo clippy -p victory-hle --all-targets -- -D warningspassed with 0 warningscargo xtask policypassed (191 files ok)Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).
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.