[cominterop] Handle NULL pointers when marshalling native-to-managed return values...
authorZebediah Figura <obsequiousnewt@gmail.com>
Wed, 31 Jul 2019 12:14:39 +0000 (07:14 -0500)
committerAlexander Köplinger <alex.koeplinger@outlook.com>
Wed, 31 Jul 2019 12:14:39 +0000 (14:14 +0200)
commit01f953851eb937755ce0bd56bc08e27b4d004a34
treef66af45eb2d1398d3144c6de1abde6b051eb0461
parent938d4cf75f9c8191761be1c4c0606b059c4cda3f
[cominterop] Handle NULL pointers when marshalling native-to-managed return values. (mono/mono#15906)

Fixes a bug running Rak24u with wine-mono: bugs.winehq.org/show_bug.cgi?id=47561

Commit migrated from https://github.com/mono/mono/commit/b51c696081a58515adf53a50e5746ed08bd1062e
src/mono/mono/metadata/cominterop.c
src/mono/mono/tests/cominterop.cs
src/mono/mono/tests/libtest.c