fix(windows/capture): unsafe block for the extracted dup_into_public call

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-07-22 23:43:23 +02:00
co-authored by Claude Opus 4.8
parent 6a8df2ba97
commit 79d30fde64
+3 -1
View File
@@ -2076,7 +2076,9 @@ fn deliver_cursor_channel(
cs: &cursor::CursorShared, cs: &cursor::CursorShared,
send_cursor: &crate::CursorChannelSender, send_cursor: &crate::CursorChannelSender,
) -> bool { ) -> bool {
let value = match broker.dup_into_public(cs.section_handle()) { // SAFETY: `cs.section_handle()` borrows the section mapping `cs` owns (live across this
// synchronous call); the broker's WUDFHost process handle is live for the broker's lifetime.
let value = match unsafe { broker.dup_into_public(cs.section_handle()) } {
Ok(v) => v, Ok(v) => v,
Err(e) => { Err(e) => {
tracing::warn!("cursor section duplication failed (composited cursor stays): {e:#}"); tracing::warn!("cursor section duplication failed (composited cursor stays): {e:#}");