From b941a8f06b0e1622671ff63e92b45ff7110700a4 Mon Sep 17 00:00:00 2001 From: "Stefanos A." Date: Fri, 20 Dec 2013 23:29:47 +0100 Subject: [PATCH] Explicitly set WindowProcedure calling convention --- Source/OpenTK/Platform/Windows/API.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/OpenTK/Platform/Windows/API.cs b/Source/OpenTK/Platform/Windows/API.cs index c05398e0..316a85ae 100644 --- a/Source/OpenTK/Platform/Windows/API.cs +++ b/Source/OpenTK/Platform/Windows/API.cs @@ -4313,6 +4313,8 @@ namespace OpenTK.Platform.Windows #region --- Callbacks --- + [SuppressUnmanagedCodeSecurity] + [UnmanagedFunctionPointer(CallingConvention.Winapi)] internal delegate IntPtr WindowProcedure(IntPtr handle, WindowMessage message, IntPtr wParam, IntPtr lParam); #region Message