Avoid unnecessary SetLastError on PInvokes (dotnet/corefx#36544)
authorJan Kotas <jkotas@microsoft.com>
Tue, 2 Apr 2019 21:41:49 +0000 (14:41 -0700)
committerJan Kotas <jkotas@microsoft.com>
Wed, 3 Apr 2019 01:17:04 +0000 (18:17 -0700)
commitaab338efb65808acc1ff9b7f95bd3dd5f0a6a3be
treecc51c8b443c76c096ba0b4e5a85758ef15549a54
parentc007aec8171b74858147da283754a0ba85bff750
Avoid unnecessary SetLastError on PInvokes (dotnet/corefx#36544)

These console PInvokes are used in nearly every app. Omitting unnecessary SetLastError
will save us from generating marshalling stub for them.

Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
src/System.Private.CoreLib/System.Private.CoreLib.csproj
src/System.Private.CoreLib/shared/Interop/Windows/Kernel32/Interop.GetStdHandle.cs
src/System.Private.CoreLib/shared/Interop/Windows/Kernel32/Interop.HandleTypes.cs [new file with mode: 0644]
src/System.Private.CoreLib/src/Internal/Console.cs