Fall back to kernel copies when handler registration fails #988
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from fxceless/victory-fork. Originally posted by ryotdev on 2026-11-25T15:15:13Z.
With
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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.