Skip to content

Commit 6d57017

Browse files
jkoritzinskyJeremy KoritzinskyCopilot
authored
Fix ComWrappers ICustomQueryInterface exception handling (#132716)
Co-authored-by: Jeremy Koritzinsky <[email protected]> Co-authored-by: Copilot <[email protected]>
1 parent 77944be commit 6d57017

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/coreclr/System.Private.CoreLib/src/System/Runtime/InteropServices/ComWrappers.CoreCLR.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ private static unsafe int CallICustomQueryInterface(ManagedObjectWrapperHolder*
7676
catch (Exception ex)
7777
{
7878
*pException = ex;
79-
return default;
79+
return -1; // See TryInvokeICustomQueryInterfaceResult.FailedToInvoke
8080
}
8181
}
8282

0 commit comments

Comments
 (0)