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

Fixes #15691
mono/metadata/jit-icall-reg.h
mono/metadata/marshal.c
mono/metadata/marshal.h
mono/mini/aot-runtime.h
mono/mini/interp/interp.c
mono/mini/method-to-ir.c