[interp] Fix struct copying during pinvoke transitions (#18402)
commita13f5ccbb60d162fe3a8ffdbb9cd61c9c1f8a425
authorVlad Brezae <brezaevlad@gmail.com>
Mon, 13 Jan 2020 11:05:25 +0000 (13 03:05 -0800)
committerAlexander Köplinger <alex.koeplinger@outlook.com>
Mon, 13 Jan 2020 11:05:25 +0000 (13 12:05 +0100)
treec86fb77ec2c2a1a2ed1fa1588d403c0c4fd21d65
parent09a7317e5ad75c598742546d3005d79463a71efe
[interp] Fix struct copying during pinvoke transitions (#18402)

If we are in pinvoke wrapper, we need to use the marshalled native size, not the managed size.
mono/mini/interp/interp.c
mono/tests/libtest.c
mono/tests/pinvoke2.cs