Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corert.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Kotas <jkotas@microsoft.com>2017-01-18 07:02:44 +0300
committerGitHub <noreply@github.com>2017-01-18 07:02:44 +0300
commit812448796dce9f0372afecd2d8d4b4d5d1e66e79 (patch)
tree7d642464b7611215e0d43e6a3c6e04f13e7cb459
parent2b801186a2a037fdcd9ba88d3375be8e4d9ce2fc (diff)
parent4441ba70441a62afce2e67ab21abeb489514a213 (diff)
Merge pull request #2528 from dotnet-bot/from-tfs
Merge changes from TFS
-rw-r--r--src/Common/src/Interop/Windows/mincore/Interop.GetLastError.cs5
-rw-r--r--src/Common/src/Interop/Windows/mincore/Interop.SetLastError.cs5
2 files changed, 2 insertions, 8 deletions
diff --git a/src/Common/src/Interop/Windows/mincore/Interop.GetLastError.cs b/src/Common/src/Interop/Windows/mincore/Interop.GetLastError.cs
index fce9ba542..45dcf94c1 100644
--- a/src/Common/src/Interop/Windows/mincore/Interop.GetLastError.cs
+++ b/src/Common/src/Interop/Windows/mincore/Interop.GetLastError.cs
@@ -2,16 +2,13 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
-using System.Runtime;
-using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
internal partial class Interop
{
internal partial class mincore
{
- [MethodImpl(MethodImplOptions.InternalCall)]
- [RuntimeImport(Interop.Libraries.ErrorHandling, "GetLastError")]
+ [DllImport("api-ms-win-core-errorhandling-l1-1-0.dll")]
internal extern static int GetLastError();
}
}
diff --git a/src/Common/src/Interop/Windows/mincore/Interop.SetLastError.cs b/src/Common/src/Interop/Windows/mincore/Interop.SetLastError.cs
index 16e8ec8e0..583043061 100644
--- a/src/Common/src/Interop/Windows/mincore/Interop.SetLastError.cs
+++ b/src/Common/src/Interop/Windows/mincore/Interop.SetLastError.cs
@@ -2,16 +2,13 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
-using System.Runtime;
-using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
internal partial class Interop
{
internal partial class mincore
{
- [MethodImpl(MethodImplOptions.InternalCall)]
- [RuntimeImport(Interop.Libraries.ErrorHandling, "SetLastError")]
+ [DllImport("api-ms-win-core-errorhandling-l1-1-0.dll")]
internal extern static void SetLastError(uint dwErrCode);
}
}