From 192b9c0d555d6c7ef071bbe2de34b35dd52588af Mon Sep 17 00:00:00 2001 From: Paul Sladen Date: Wed, 29 Jul 2009 18:30:04 +0100 Subject: [PATCH] PluginManger: KLUDGE override CallingConvention.Cdecl (needs neater method) --- openBVE/OpenBve/PluginManager.cs | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/openBVE/OpenBve/PluginManager.cs b/openBVE/OpenBve/PluginManager.cs index 622e178..2d283ca 100644 --- a/openBVE/OpenBve/PluginManager.cs +++ b/openBVE/OpenBve/PluginManager.cs @@ -87,8 +87,7 @@ namespace OpenBve { private const int ATS_CONSTANTSPEED_DISABLE = 2; // proxy functions - private const CallingConvention convention = CallingConvention.StdCall; + private const CallingConvention convention = CallingConvention.Cdecl; private const string proxyname = "AtsPluginProxy.dll"; [DllImport(proxyname, ExactSpelling = true, CallingConvention = convention)] -- 1.6.0.4