diff options
author | Jan Kotas <jkotas@microsoft.com> | 2017-01-18 07:02:44 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-18 07:02:44 +0300 |
commit | 812448796dce9f0372afecd2d8d4b4d5d1e66e79 (patch) | |
tree | 7d642464b7611215e0d43e6a3c6e04f13e7cb459 | |
parent | 2b801186a2a037fdcd9ba88d3375be8e4d9ce2fc (diff) | |
parent | 4441ba70441a62afce2e67ab21abeb489514a213 (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.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); } } |