HLE: fix DirectStorage file sharing and error capture #1496
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1497"
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 Calvix2k on 2026-11-24T18:28:59Z.
Summary
GetLastErrorimmediately whenCreateFileWfails, before formatting the path or logging.Addresses VIC-BT-037 from the audit in #1249.
Verification
cargo test -p victory-hle --lib— 96 passedcargo clippy -p victory-hle --all-targets --all-features --locked -- -D warnings— passedgit diff --check— passedImported from Marvisak/VIctory. Originally posted by acetonahard-code on 2026-11-24T22:33:24Z.
Partial overlap: #1383 (opened earlier) also captures the
CreateFileWerror in DirectStorageopen_filebefore the path is decoded for the log. This PR also widens the share mode. The two conflict indstorage.rs.Tested on Windows 11 with the repo toolchain, merged into current
main(70564ae):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-25T00:41:30Z.
Automated triage for the maintainers. Closing because another open pull request covers the same change.
See #1383. Its error-capture half duplicates #1383; the other half opens DirectStorage files with write and delete sharing, a behaviour change with no evidence.
If this is mistaken, reply here with what was missed (or push a change and say so) and it will be looked at again. Thank you for the contribution.
Pull request closed