From 1e1e5ce9b5e230309bc276d03527353751820157 Mon Sep 17 00:00:00 2001 From: enricobuehler Date: Tue, 16 Jun 2026 15:41:41 +0000 Subject: [PATCH] fix(host/windows): Option-handle the multi-line dupl.GetFramePointerShape call too Co-Authored-By: Claude Opus 4.8 --- crates/punktfunk-host/src/capture/dxgi.rs | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/crates/punktfunk-host/src/capture/dxgi.rs b/crates/punktfunk-host/src/capture/dxgi.rs index e59baa1..65da89b 100644 --- a/crates/punktfunk-host/src/capture/dxgi.rs +++ b/crates/punktfunk-host/src/capture/dxgi.rs @@ -1419,13 +1419,16 @@ impl DuplCapturer { let mut si = DXGI_OUTDUPL_POINTER_SHAPE_INFO::default(); if self .dupl - .GetFramePointerShape( - info.PointerShapeBufferSize, - buf.as_mut_ptr() as *mut c_void, - &mut required, - &mut si, - ) - .is_ok() + .as_ref() + .is_some_and(|d| { + d.GetFramePointerShape( + info.PointerShapeBufferSize, + buf.as_mut_ptr() as *mut c_void, + &mut required, + &mut si, + ) + .is_ok() + }) { if let Some(shape) = convert_pointer_shape(&buf, &si) { tracing::info!(