Skip to content

Commit 2c1bcc9

Browse files
committed
Fix
1 parent 352b505 commit 2c1bcc9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vnext/Microsoft.ReactNative/Fabric/Composition/CompositionDynamicAutomationProvider.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ HRESULT __stdcall CompositionDynamicAutomationProvider::GetPatternProvider(PATTE
139139
// Invoke control pattern is used to support controls that do not maintain state
140140
// when activated but rather initiate or perform a single, unambiguous action.
141141
if (patternId == UIA_InvokePatternId && accessibilityRole == "button" || accessibilityRole == "imagebutton") {
142-
return pRetVal = this;
142+
*pRetVal = reinterpret_cast<::IUnknown *>(this);
143143
}
144144

145145
*pRetVal = nullptr;

0 commit comments

Comments
 (0)