https://bugs.winehq.org/show_bug.cgi?id=48174
--- Comment #13 from Vincent Povirk madewokherd@gmail.com --- I wrote a patch for Marshal: https://github.com/madewokherd/mono/commit/59163403b04eb48e62df6f163473b7bea...
I'm still working on properly testing this so it can be added to master.