HLE: allow oleaut32.dll in default host policy #2063
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2065"
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 fuzeofficlal on 2026-11-25T04:20:08Z.
Closes #811.
Summary
"oleaut32.dll"alongside"ole32.dll"inHostPolicy::default()as a standalone change sovccorlib140.dll'sOLEAUT32.dllordinal imports (#4SysAllocStringLen,#6SysFreeString, etc.) bind to the local system DLL viaLOAD_LIBRARY_SEARCH_SYSTEM32.Testing
default_policy_allows_oleaut32and Windows host resolution testoleaut32_bstr_ordinals_resolve_to_hostverifying ordinals4and6resolve toSysAllocStringLenandSysFreeStringwithProvenance::Host.cargo test -p victory-hle,cargo clippy --workspace --all-targets -- -D warnings, andcargo xtask policy.Imported from Marvisak/VIctory. Originally posted by catminou4 on 2026-11-25T04:26:27Z.
Review: COMMENTED
Static review only: victory-hle is Windows-only — nothing compiles or runs on macOS; source review of the diff.
oleaut32.dll allowed in the default host policy — widens the default DLL surface; check it's needed by a shipping title path, not just convenience.
Imported from Marvisak/VIctory. Originally posted by jeremygold02 on 2026-11-25T04:22:58Z.
Triage verdict — Keep this focused fix for #811 and reconcile the matching hunk in #216 (
af442f8)Evidence
oleaut32.dllallowlist entry. Both check that ordinals 4 and 6 resolve to the named BSTR functions and count as host imports, as reported by @UNYTIX in #811. This PR additionally checks case-insensitive matching and strict-policy exclusion. Focused change and tests · #216 policy entry · #216 testsChecks and limits
main. The Windows ordinal test result in the PR description is author-reported for this pass.Next step
This verification was AI-assisted.
Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T10:23:59Z.
Automated triage for the maintainers.
Looks mergeable. It adds
oleaut32.dlltoHostPolicy::default()invictory-hle/src/host.rs, next toole32.dll. That binds the two BSTR ordinals (#4SysAllocStringLen, #6SysFreeString) thatvccorlib140.dllimports, which are the last unresolved imports reported in #811. Strict mode (HostPolicy::none) is unaffected. The tests check case-insensitive matching and host provenance for both ordinals. CI is passing.The same hunk is also in the larger #216 (which needs a rebase). If this lands first, #216 should drop it.
Generated by Claude Code
Imported from Marvisak/VIctory. Originally posted by cloph-dsp on 2026-11-27T13:32:19Z.
Independent local verification of PR #2065 (HLE: allow oleaut32.dll in default host policy).
cargo test --locked,CARGO_BUILD_JOBS=2, per-worktreeCARGO_TARGET_DIR=D:\Victory-Contrib\target-2065-watch.af442f86a8a70ae17a37699bf3b6ccbc27e9a401, merge base940d32f69b22265690a0b5a15d6ded572ba33baf.cargo test --locked -p victory-hle --lib -- --exact host::tests::default_policy_allows_oleaut32 --test-threads=1 --quietgit grep -F -c 'host::tests::default_policy_allows_oleaut32' 940d32f -- crates/victory-hle/src→ 0 hits (exit 1).git diff --check 940d32f HEADclean (exit 0).Only the named synthetic policy test was replayed; no real title or host-library call was exercised. GPU/driver: N/A for this CPU-only HLE test. AI-assisted (Hy4 flash). No game data, assets, extracted shaders, DRM or decrypt used.
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.