HLE: reopen the emulated OEM key on a null or empty subkey #1431
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!1431
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1431/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?
@fuzeofficlal on GitHub · 2026-11-24 17:58 UTC · original
fuzeofficlal:fix/hle-regopen-oem-empty-subkey-765→main· +70 −2 · 1 files · 1 commits · closed without mergingFixes #765.
Summary
"") subkeys on the emulatedoem()registry handle inxsystem::device_type::open: returnERROR_INVALID_PARAMETER(87) whenoutis null, otherwise writeoem()and returnERROR_SUCCESS(0).Verification
null_or_empty_subkey_reopens_the_oem_keycoveringRegOpenKeyWandRegOpenKeyExWwithNULL/L""subkeys, null output pointers,RegCloseKeysafety on the reopened handle, and non-empty subkeyFILE_NOT_FOUND.cargo test --workspace,cargo clippy --workspace --all-targets --all-features, andcargo xtask policy: passed.@acetonahard-code on GitHub · 2026-11-24 21:06 UTC · original
Tested on Windows 11 with the repo toolchain, merged into current
main(ffe310e):cargo test -p victory-hlemainmain+ this PRcargo clippy --all-targets -- -D warnings, with and without--all-features: clean.I didn't test with game data.
Tested locally with an AI-assisted script (Claude Code); I checked the results before posting.
@Marvisak on GitHub · 2026-11-25 03:27 UTC · original
Automated triage for the maintainers.
Needs work.
device_type::openincrates/victory-hle/src/modules/xsystem.rsnow reopens the emulated OEM key when the subkey is null or empty, and returns 87 when the output pointer is null. This matches Microsoft's documentation forRegOpenKeyW/RegOpenKeyExW, and CI passes. However, the module comment and issue #765 both say the title only opens the full path and readsConsoleMode, so nothing in the title reaches this path. Please show where the title, or code linked into it, reopens this key with a null or empty subkey. Without such a caller this is completeness for an unreachable case.Generated by Claude Code
@fuzeofficlal on GitHub · 2026-11-25 04:32 UTC · original
Agreed with the triage note — there is no observed caller reopening the
ConsoleModeOEM handle with a null or empty subkey, so keepingdevice_type::openminimal is cleaner. Closing this PR.Pull request closed