hle(files): signal overlapped.hEvent when bounced_read completes #3140
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!3140
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3140"
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?
@RanoGames on GitHub · 2026-11-29 20:15 UTC · original
RanoGames:fix/files-bounced-read-signal-event→main· +70 −9 · 1 files · 1 commits · openWhat it changes
Fixes
bounced_readincrates/victory-hle/src/modules/files.rs:VICTORY_READ_BOUNCE=1and a non-nulloverlappedpointer was passed,bounced_readused a localOVERLAPPEDwithhEvent = 0and wroteInternal/InternalHighback to the caller'sOVERLAPPED, but never signaled the caller'soverlapped.hEvent(offset+24).hEvent(orGetOverlappedResult(..., TRUE)) could hang after a bounced read.complete_overlapped(overlapped, total)which writesInternal/InternalHighand callsSetEvent(hEvent)whenhEventis non-null.modules::files::tests::bounced_read_signals_overlapped_event.How it was tested
ReadFilebounce path)bounced_readwroteInternalandInternalHighwithout signalingoverlapped.hEvent.overlapped.hEventis signaled viaSetEventwhen non-null.cargo testpassed for the crates it touches: yes (cargo test --locked -p victory-hle --lib -- modules::files::tests: 11 passed, 0 failed;cargo xtask policy --stagedpassed)Checked for overlap
bounced_read(0 PRs).View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.