https://bugs.winehq.org/show_bug.cgi?id=48174
--- Comment #51 from Esme Povirk madewokherd@gmail.com --- We use mono, not dotnet.
Looks like it was ported over: https://github.com/mono/mono/pull/19701
But, that seems to be for string marshaling only, which should already be working correctly in wine-mono, the remaining problem is not having 0's after arrays.