fix(host/windows): Option-handle the multi-line dupl.GetFramePointerShape call too

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-06-16 15:41:41 +00:00
parent da43b5e8d3
commit 1e1e5ce9b5
+10 -7
View File
@@ -1419,13 +1419,16 @@ impl DuplCapturer {
let mut si = DXGI_OUTDUPL_POINTER_SHAPE_INFO::default(); let mut si = DXGI_OUTDUPL_POINTER_SHAPE_INFO::default();
if self if self
.dupl .dupl
.GetFramePointerShape( .as_ref()
info.PointerShapeBufferSize, .is_some_and(|d| {
buf.as_mut_ptr() as *mut c_void, d.GetFramePointerShape(
&mut required, info.PointerShapeBufferSize,
&mut si, buf.as_mut_ptr() as *mut c_void,
) &mut required,
.is_ok() &mut si,
)
.is_ok()
})
{ {
if let Some(shape) = convert_pointer_shape(&buf, &si) { if let Some(shape) = convert_pointer_shape(&buf, &si) {
tracing::info!( tracing::info!(