[corlib] Return e.HResult instead of PlatformNotSupportedException/-1 for Marshal...
commit055d9416c48647782da58e88a1e48ffb4e6fc38c
authorAlexander Köplinger <alex.koeplinger@outlook.com>
Fri, 26 Aug 2016 10:22:10 +0000 (26 12:22 +0200)
committerAlexander Köplinger <alex.koeplinger@outlook.com>
Fri, 26 Aug 2016 15:20:47 +0000 (26 17:20 +0200)
treeae29e6ad9e3ab718904d0d5b31713b3db20760fb
parentdcd650d6fc59817b1efd6fc088ac41ce304a41c2
[corlib] Return e.HResult instead of PlatformNotSupportedException/-1 for Marshal.GetHRForException

Follow what coreclr/corefx does now: https://github.com/dotnet/coreclr/pull/6929.
mcs/class/corlib/System.Runtime.InteropServices/Marshal.cs
mcs/class/corlib/Test/System.Runtime.InteropServices/MarshalTest.cs