Skip to content

Commit

Permalink
fixed crash on function pointer refactor - setting token to null (#467)
Browse files Browse the repository at this point in the history
  • Loading branch information
Scottj1s authored Oct 8, 2020
1 parent 45c8f6c commit 46fe22b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion WinRT.Runtime/Projections/ICommand.net5.cs
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ private static unsafe int Do_Abi_Execute_3(IntPtr thisPtr, IntPtr parameter)

private static unsafe int Do_Abi_add_CanExecuteChanged_0(IntPtr thisPtr, IntPtr handler, global::WinRT.EventRegistrationToken* token)
{
token = default;
*token = default;
try
{
var __this = global::WinRT.ComWrappersSupport.FindObject<global::System.Windows.Input.ICommand>(thisPtr);
Expand Down
2 changes: 1 addition & 1 deletion WinRT.Runtime/Projections/ICommand.netstandard2.0.cs
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ private static unsafe int Do_Abi_Execute_3(IntPtr thisPtr, IntPtr parameter)

private static unsafe int Do_Abi_add_CanExecuteChanged_0(IntPtr thisPtr, IntPtr handler, global::WinRT.EventRegistrationToken* token)
{
token = default;
*token = default;
try
{
var __this = global::WinRT.ComWrappersSupport.FindObject<global::System.Windows.Input.ICommand>(thisPtr);
Expand Down
2 changes: 1 addition & 1 deletion WinRT.Runtime/Projections/INotifyCollectionChanged.net5.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ static unsafe Vftbl()
[UnmanagedCallersOnly]
private static unsafe int Do_Abi_add_CollectionChanged_0(IntPtr thisPtr, IntPtr handler, global::WinRT.EventRegistrationToken* token)
{
token = default;
*token = default;
try
{
var __this = global::WinRT.ComWrappersSupport.FindObject<global::System.Collections.Specialized.INotifyCollectionChanged>(thisPtr);
Expand Down
2 changes: 1 addition & 1 deletion WinRT.Runtime/Projections/INotifyPropertyChanged.net5.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ static unsafe Vftbl()
[UnmanagedCallersOnly]
private static unsafe int Do_Abi_add_PropertyChanged_0(IntPtr thisPtr, IntPtr handler, global::WinRT.EventRegistrationToken* token)
{
token = default;
*token = default;
try
{
var __this = global::WinRT.ComWrappersSupport.FindObject<global::System.ComponentModel.INotifyPropertyChanged>(thisPtr);
Expand Down

0 comments on commit 46fe22b

Please sign in to comment.