Skip to content

Commit

Permalink
Ensure correct calling convention for unmanaged-to-managed callbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
kleisauke committed Aug 16, 2023
1 parent 43c043c commit a9bd5ce
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/NetVips/Image.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ namespace NetVips
using System.Collections.Generic;
using System.IO;
using System.Runtime.InteropServices;
using System.Security;
using System.Text;
using System.Threading;
using Internal;
Expand All @@ -28,6 +29,7 @@ public partial class Image : VipsObject
/// <summary>
/// Internal marshaller delegate for <see cref="EvalDelegate"/>.
/// </summary>
[SuppressUnmanagedCodeSecurity, UnmanagedFunctionPointer(CallingConvention.Cdecl)]
internal delegate void EvalMarshalDelegate(IntPtr imagePtr, VipsProgress progress, IntPtr userDataPtr);

/// <inheritdoc cref="VipsObject"/>
Expand Down

0 comments on commit a9bd5ce

Please sign in to comment.