diff options
author | Jan Kotas <jkotas@microsoft.com> | 2017-01-18 20:07:31 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-18 20:07:31 +0300 |
commit | 07c6dad2b10d7e5a70c979d339e6f3173a5ef515 (patch) | |
tree | 0d70fe753649aab6bb0e671ebead0fe7adffc9cd | |
parent | f7a6c331eddabcbe9ec852b126240ae3642c96f1 (diff) | |
parent | 812448796dce9f0372afecd2d8d4b4d5d1e66e79 (diff) |
Merge pull request #2529 from dotnet/nmirror
Merge nmirror to master
-rw-r--r-- | src/Common/src/Interop/Windows/mincore/Interop.GetLastError.cs | 5 | ||||
-rw-r--r-- | src/Common/src/Interop/Windows/mincore/Interop.SetLastError.cs | 5 |
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); } } |