HLE: implement the RPC runtime's GUID calls

(cherry picked from commit 7216ab7113115ea1accfabc6e3a00ee700c7c846)
This commit is contained in:
Nixitov authored and local committed 2026-11-25 01:02:59 -06:00
1 parent 3f497dafc1
commit efbf10765a
4 files changed
+442

No files matched your search

+26
View File
@@ -123,4 +123,30 @@ mod tests {
Some(Provenance::Hle)
);
}
// #510: the RPC runtime's GUID calls are ours, so the DLL itself stays
// outside the host policy (its own `ws2_32` imports would be a network
// path `modules::net` never sees).
#[test]
fn the_rpc_runtime_is_implemented_here() {
let r = HleResolver::new(HostPolicy::none());
for call in [
"UuidCreate",
"UuidCreateSequential",
"UuidFromStringA",
"UuidFromStringW",
"UuidToStringA",
"UuidToStringW",
"RpcStringFreeA",
"RpcStringFreeW",
] {
assert_eq!(
r.classify("rpcrt4.dll", &name(call)),
Some(Provenance::Hle),
"{call}"
);
}
// A call we do not implement is not passed to the host either.
assert_eq!(r.classify("rpcrt4.dll", &name("RpcServerRegisterIf")), None);
}
}