Fall back to kernel copies when handler registration fails #990
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/fxceless--victory-fork!990
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-990"
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?
@ryotdev on GitHub · 2026-11-25 15:15 UTC · original
ryotdev:codex/plaincopy-handler-fallback→main· +32 −9 · 1 files · 1 commits · openWith
VICTORY_COPY_PLAIN=1, the fast path relies on a Windows exception handler to recover when a source page disappears. Windows can return a null handle from registration. The previous code discarded that result and could start the copy anyway. Windows API return valueThis change remembers whether registration succeeded. If it failed, the renderer logs the failure once and uses the existing kernel copy path. The regression injects a null registration result, checks that the destination stays untouched, and verifies that registration is attempted only once.
Verification
victory-gpuand ranplaincopy::tests --test-threads=1on Windows. All five tests passed.git diff --checkpassed.AI-assisted. #946 touches the same handler for a separate change and may need a rebase.
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.