https://bugs.winehq.org/show_bug.cgi?id=48174
--- Comment #14 from Rafał Mużyło galtgendo@o2.pl --- (In reply to Vincent Povirk from comment #13)
I wrote a patch for Marshal: https://github.com/madewokherd/mono/commit/ 59163403b04eb48e62df6f163473b7bea2585d2c
Just a thought: won't that break the mono executable ? Not the executables run by mono, but mono itself.
I mean, there might be a reason why mono/netcore/System.Private.CoreLib/shared/System/Runtime/InteropServices/Marshal.Windows.cs and mono/metadata/marshal-windows.c differ as significantly and this seems the most likely one...
That is the bug might likely be still being allowed to build mono without netcore by the build system.