You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Found when adding ComImport-based unit tests to C#/WinRT. An interface defined with ComInterfaceType.InterfaceIsIInspectable will cast without error, but subsequent interface calls will AV. According to @jkoritzinsky, the correct behavior is to throw an exception on the cast.
Found when adding ComImport-based unit tests to C#/WinRT. An interface defined with ComInterfaceType.InterfaceIsIInspectable will cast without error, but subsequent interface calls will AV. According to @jkoritzinsky, the correct behavior is to throw an exception on the cast.
Repro:
unit test code
cast code, Marshal.GetObjectForIUnknown
The text was updated successfully, but these errors were encountered: