Stop specifying cdecl for ComponentEntryPoint (default to stdcall) (dotnet/coreclr...
authorElinor Fung <47805090+elinor-fung@users.noreply.github.com>
Wed, 29 May 2019 20:32:07 +0000 (13:32 -0700)
committerGitHub <noreply@github.com>
Wed, 29 May 2019 20:32:07 +0000 (13:32 -0700)
Commit migrated from https://github.com/dotnet/coreclr/commit/85af89bbbf22b30f3f7f46c961b3f484c8783630

src/coreclr/src/System.Private.CoreLib/src/Internal/Runtime/InteropServices/ComponentActivator.cs

index 6e40103..e025413 100644 (file)
@@ -18,7 +18,6 @@ namespace Internal.Runtime.InteropServices
         private static readonly Dictionary<string, IsolatedComponentLoadContext> s_AssemblyLoadContexts;
         private static readonly Dictionary<IntPtr, Delegate> s_Delegates = new Dictionary<IntPtr, Delegate>();
 
-        [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
         public delegate int ComponentEntryPoint(IntPtr args, int sizeBytes);
 
         static ComponentActivator()