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:
@@ -2076,7 +2076,9 @@ fn deliver_cursor_channel(
|
||||
cs: &cursor::CursorShared,
|
||||
send_cursor: &crate::CursorChannelSender,
|
||||
) -> 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,
|
||||
Err(e) => {
|
||||
tracing::warn!("cursor section duplication failed (composited cursor stays): {e:#}");
|
||||
|
||||
Reference in New Issue
Block a user