HLE: reopen the emulated OEM key on a null or empty subkey #1430
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1431"
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-24T17:58:05Z.
Fixes #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.Imported from Marvisak/VIctory. Originally posted by acetonahard-code on 2026-11-24T21:06:59Z.
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.
Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T03:27:26Z.
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
Imported from Marvisak/VIctory. Originally posted by fuzeofficlal on 2026-11-25T04:32:48Z.
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