[netcore] Clear system last error before P/Invoke calls with SetLastError=true (mono...
authorFilip Navara <filip.navara@gmail.com>
Wed, 17 Jul 2019 12:44:50 +0000 (14:44 +0200)
committerAlexander Köplinger <alex.koeplinger@outlook.com>
Wed, 17 Jul 2019 12:44:50 +0000 (14:44 +0200)
commitffd89bf04a5fd2b987d0e21c92482b746426d674
tree6bee026355830b2a7a4c25aad3d8028c371602e3
parent13e31f2bf1e09ef3f9b5735f1c42f8a5557163da
[netcore] Clear system last error before P/Invoke calls with SetLastError=true (mono/mono#15703)

Fixes mono/mono#15691

Commit migrated from https://github.com/mono/mono/commit/9af45e09db9c0d9813be46cd89d7c5092ea9600b
src/mono/mono/metadata/jit-icall-reg.h
src/mono/mono/metadata/marshal.c
src/mono/mono/metadata/marshal.h
src/mono/mono/mini/aot-runtime.h
src/mono/mono/mini/interp/interp.c
src/mono/mono/mini/method-to-ir.c