HLE: OLEAUT32 ordinals 4/6 (imported by vccorlib140.dll) have no binding #811
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory#811
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@UNYTIX on GitHub · 2026-11-24 11:28 UTC · original
victory censusreports 74 unresolved imports on 1.0.2.1. 72 of them are exports of thetitle's own DLLs (libHttpClient.GDK 38, Bink2Scarlett 23, XboxBvhBuilder 7,
amd_fidelityfx_loader_xbox 4) that the loader binds as
titleimports, so they are notgaps. The remaining two are the only real ones:
Both are imported by
vccorlib140.dll, the C++/CX runtime. Nothing on the boot/menu pathreaches them: no image in the package imports
vccorlib140.dll(static or delay import),and none of three WARP runs (~6 min, menus rendering) logs it being mapped or loaded.
Ordinal 4/6 are the standard BSTR pair (Wine's
oleaut32.specand the export table ofC:\Windows\System32\oleaut32.dllagree), andGetProcAddressby ordinal 4 and 6 returnsaddresses on the host, so a
HostPolicyentry foroleaut32.dllwould bind them without ashim. Worth doing when something starts loading vccorlib140.dll: an unresolved import is a
trap stub by default, so the first
SysFreeStringwould abort the process with a crash-logentry naming it.
@pushkarreddyy on GitHub · 2026-11-24 12:00 UTC · original
Claiming this issue.
In
crates/victory-hle/src/host.rs,HostPolicy::default()already permits companion COM/runtime DLLs likeole32.dllandmsvcp_win.dll. Furthermore,imp::resolvealready implements ordinal resolution viaGetProcAddress(module, ordinal as _).Adding
"oleaut32.dll"toHostPolicy::default()cleanly satisfies ordinal #4 (SysAllocStringLen) and ordinal #6 (SysFreeString) on host without requiring trap stubs or shims.Preparing a clean, verified branch with unit tests on a fork.
@UNYTIX on GitHub · 2026-11-24 12:10 UTC · original
Fix is pushed and ready on a fork branch (no code change in this repo needed beyond one line):
UNYTIX/VIctory, branchfix/oleaut32-host-allowance, commit16f59b5github.com/UNYTIX/VIctory@16f59b5What it does: adds
oleaut32.dlltoHostPolicy::default(), plushost::tests::oleaut32_bstr_ordinals_resolveasserting that ordinals#4and#6resolve through the policy to non-null addresses. Census after the change:
995 functions, 130 HLE, 793 host, 72 missing; the
oleaut32.dllrow is 2functions, 2 host, 0 missing.
cargo test --workspace --locked(343 passed) andcargo clippy --workspace --all-targets --locked -- -D warningsare clean.gh pr createfrom theUNYTIXaccount is refused by this repository(
CreatePullRequestFORBIDDEN, both GraphQL and REST), so the PR has to be openedfrom the compare link above by someone with access.
@pushkarreddyy on GitHub · 2026-11-24 12:57 UTC · original · edited 2026-11-24 14:22 UTC
Thanks @UNYTIX for the census metrics and independent verification!
The census numbers (995 functions: 130 HLE, 793 host, 72 missing;
oleaut32.dllrow: 2 functions, 2 host, 0 missing) clearly show that addingoleaut32.dlltoHostPolicy::default()cleanly closes out both missing ordinals (#4 and #6) without code regression.Both fork branches (
pushkarreddyy:fix/host-policy-oleaut32andUNYTIX:fix/oleaut32-host-allowance) are identical in behavior and test coverage—either is ready for @Marvisak to review or merge when convenient!@pushkarreddyy on GitHub · 2026-11-24 12:03 UTC · original · edited 2026-11-24 14:22 UTC
Verified Fix Ready on Fork
As upstream pull request creation is currently restricted to collaborators, the complete tested fix is available on my fork:
034521fbased onmain(ffe310e)Changes (
crates/victory-hle/src/host.rs):"oleaut32.dll"toHostPolicy::default().default_policy_allows_oleaut32verifying case-insensitive DLL matching.default_policy_resolves_oleaut32_bstr_ordinalsasserting that ordinal #4 (SysAllocStringLen) and ordinal #6 (SysFreeString) resolve cleanly on Windows hosts.Verification:
rustfmt --edition 2024.@superboynick on GitHub · 2026-11-24 17:01 UTC · original
Independent confirmation, on a runtime we built here from source: a different machine, a different copy of the package, our own
victory.exe—main@ffe310eb2098(commit prefix), rustc 1.98.1 as pinned byrust-toolchain.toml, MSVC 14.44.35207. The image it was pointed at is blake3b99f876b74d4a77f03af5f878223b27bd647b5c35a79d5decd9f716504239e93, entry rva0x56a1ec8, 587 imports.victory censusreproduces the table in #811 item for item: TOTAL 995 funcs / 130 hle / 791 host / 74 missing, the 74 splitting as libhttpclient.gdk 38, bink2scarlett 23, xboxbvhbuilder 7, amd_fidelityfx_loader_xbox 4, oleaut32 2.Then one layer below the aggregate.
victory run, invoked without--execute, reaches the binding stage and prints:The 72 is not a new count — it is the 38+23+7+4 that census still files under missing, now bound into the
titlecolumn, and 88+427+72 = 587, exactly the import countinspectreports for this image. So at binding time the deficit is 0, and the class of those 72 is settled by resolution rather than by arithmetic: census aggregates statically over the images, binding actually resolves each import and lands it at an address. An earlier report from another machine printed the same two binding totals and the same TLS count, with nothing in the title column and all 72 in missing — which leaves the whole difference between the two reports in classification, not in coverage.Boundary: no
--execute, so the title was never started. No gameplay, no frame data, nothing about how far it gets; the run's own last line says exactly that.Still curious whether
censusis meant to keep title-DLL exports inmissing(#838 raised this); is 74 the intended raw number, or should it fall to the two OLEAUT32 ordinals?AI-assisted. No game data used.
@superboynick on GitHub · 2026-11-24 18:07 UTC · original
Follow-up to my comment above, same thread — a controlled experiment rather than a new topic. Same build, same package, one variable: which DLLs sit beside the exe.
A— package DLLs in place: 4title dlllines, thenbound GTA6.exe: 88 hle, 427 host, 72 title, 0 missing.B— the four title DLLs moved away (XboxBvhBuilder, amd_fidelityfx_loader_xbox, libHttpClient.GDK, Bink2Scarlett): 0title dlllines, then88 hle, 427 host, 0 title, 72 missing.C— every DLL moved away: output identical to B, same 5403 bytes, sha2560fed33d0671015a0c082c100c64123c6c628418249efc5c4c9b1376fc4524d56.88 hleand427 hosthold in all three. The 72 that change column are the four counts from the issue body, unchanged: libHttpClient.GDK 38, Bink2Scarlett 23, XboxBvhBuilder 7, amd_fidelityfx_loader_xbox 4. So the presence of those four files beside the exe is what decidestitleversusmissing, and C rules the remaining DLLs out of the picture entirely.Mechanism the output supports: with no title DLL present, the loader substitutes nothing — no HLE stand-in, no host binding — and those imports drop straight to
missing. What was inferred from the counts above is now measured.Triage rule that follows: any report showing
72 missingon this build starts with a directory listing — are those four files beside the exe? #930 reports the same shape on the same commit, with only the exe in its directory.Boundary: no
--executein any of the three runs; the title never started, so there is nothing from inside it and no frame data.AI-assisted. No game data used.
@Marvisak on GitHub · 2026-11-25 03:54 UTC · original
Automated triage for the maintainers.
Confirmed on
main:HostPolicy::default()incrates/victory-hle/src/host.rslistsole32.dllbut notoleaut32.dll, so ordinals 4 and 6 are unresolved. As the report says, the only importer isvccorlib140.dll, which nothing has been seen to load, so there is no runtime impact yet.Open PR #216 allows
oleaut32.dllalong with unrelated changes. Pull requests are open to everyone, so please open the one-line fork change as its own PR. Whethercensusshould list title-DLL exports as missing is the separate question in #838.Generated by Claude Code