Skip to content

Commit

Permalink
Fix calling convention of callback
Browse files Browse the repository at this point in the history
  • Loading branch information
Herve-M committed May 1, 2016
1 parent 95b7ddd commit 78238b1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/WinSparkleDotNet/WinSparkle.cs
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ private static extern void SetUpdateCheckInterval(
[return: MarshalAs(UnmanagedType.I4)]
private static extern int GetLastCheckTime();

[UnmanagedFunctionPointer(CallingConvention.StdCall)]
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
public delegate void ErrorCallback();

/// <summary>
Expand All @@ -335,7 +335,7 @@ public static extern void SetErrorCallback(
[param: MarshalAs(UnmanagedType.FunctionPtr)] ErrorCallback callback
);

[UnmanagedFunctionPointer(CallingConvention.StdCall)]
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
public delegate bool CanShutdownCallback();

/// <summary>
Expand Down Expand Up @@ -367,7 +367,7 @@ public static extern void SetCanShutdownCallback(
[param: MarshalAs(UnmanagedType.FunctionPtr)] CanShutdownCallback callback
);

[UnmanagedFunctionPointer(CallingConvention.StdCall)]
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
public delegate void ShutdownRequestCallback();

/// <summary>
Expand Down Expand Up @@ -402,7 +402,7 @@ public static extern void SetShutdownRequestCallback(
[param:MarshalAs(UnmanagedType.FunctionPtr)] ShutdownRequestCallback callback
);

[UnmanagedFunctionPointer(CallingConvention.StdCall)]
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
public delegate void DidFindUpdateCallback();

/// <summary>
Expand All @@ -424,7 +424,7 @@ public static extern void SetDidFindUpdateCallback(
[param: MarshalAs(UnmanagedType.FunctionPtr)] DidFindUpdateCallback callback
);

[UnmanagedFunctionPointer(CallingConvention.StdCall)]
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
public delegate void DidNotFindUpdateCallback();

/// <summary>
Expand All @@ -446,7 +446,7 @@ public static extern void SetDidNotFindUpdateCallback(
[param: MarshalAs(UnmanagedType.FunctionPtr)] DidNotFindUpdateCallback callback
);

[UnmanagedFunctionPointer(CallingConvention.StdCall)]
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
public delegate void UpdateCancelledCallback();

/// <summary>
Expand Down

0 comments on commit 78238b1

Please sign in to comment.