HLE: allow rpcrt4.dll in default host policy #510
No reviewers
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!510
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/510/head"
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?
@pushkarreddyy on GitHub · 2026-11-24 04:20 UTC · original
pushkarreddyy:fix/host-policy-rpcrt4→main· +13 −0 · 1 files · 1 commits · closed without mergingProblem
During startup and runtime, titles importing RPC and UUID functionality (such as
UuidCreate) cause the loader to log:as reported in #417. On Windows PC and console, standard RPC runtime functions live in
rpcrt4.dll.Fix
Add
"rpcrt4.dll"toHostPolicy::default().allow, allowing standard host RPC/UUID functions to resolve. Added unit testhost_policy_allows_rpcrt4.No game files used.
@pushkarreddyy on GitHub · 2026-11-24 04:50 UTC · original
### Technical Verification & Implementation Details
Context & Root Cause
In
crates/victory-hle/src/host.rs,DEFAULT_HOST_DLLSlists system DLLs safe for host passthrough when running in the default host policy. Previously, onlyws2_32.dllandbcrypt.dllwere included. Windows RPC runtime (rpcrt4.dll) is standard on Windows and required by system services and game titles for COM/RPC operations, UUID generation (UuidCreate), and object marshalling. Without it, symbol resolution fails when games call RPC functions.Changes & Diff
"rpcrt4.dll"toDEFAULT_HOST_DLLS.default_policy_allows_rpcrt4testing case-insensitive matching ("RPCRT4.DLL").Git Log Line & Verification
ext 756a1f0 HLE: allow rpcrt4.dll in default host policy crates/victory-hle/src/host.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+)cargo xtask policy(Rule #1 compliance, zero game assets).rustfmt --edition 2024.@pushkarreddyy on GitHub · 2026-11-24 06:24 UTC · original
### Call for Testing & Maintainer Review
Community members testing game initialization or HLE modules on Windows 10/11: verification and feedback on this PR is warmly welcome!
cargo xtask policypassing).@Marvisak: Ready for maintainer review and merge when convenient!
@pushkarreddyy on GitHub · 2026-11-24 07:32 UTC · original
Thank you @mercuryVM for the thorough security and network architecture review!
You make a crucial architectural point: allowing
rpcrt4.dllwholesale bypassesmodules::net's loopback-only intercept onws2_32.dll, opening remote socket paths viancacn_ip_tcpandncacn_http.I completely agree that the proper, sandboxed approach is implementing the specific imported UUID functions in HLE (
UuidCreateviaBCryptGenRandomwith RFC 4122 v4 bits,UuidToStringA/W, andRpcStringFreeA/W) rather than opening up the entire host RPC runtime.Closing this PR in favor of targeted HLE implementations. Thanks again!
Pull request closed