From 3c527c76cb4139402d2b5550d2eb1ad12e07ebe5 Mon Sep 17 00:00:00 2001 From: Matt Campbell Date: Sat, 17 Dec 2022 13:00:20 -0600 Subject: [PATCH] fix: Correct broken UIA method implementation that was incompatible with Windows 11 ATs (#193) --- platforms/windows/src/text.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platforms/windows/src/text.rs b/platforms/windows/src/text.rs index 37873cb39..6aa7a60ea 100644 --- a/platforms/windows/src/text.rs +++ b/platforms/windows/src/text.rs @@ -570,6 +570,6 @@ impl ITextRangeProvider_Impl for PlatformRange { fn GetChildren(&self) -> Result<*mut SAFEARRAY> { // We don't support embedded objects in text. - Ok(std::ptr::null_mut()) + Ok(safe_array_from_com_slice(&[])) } }