[marshal] Rethrow in native-to-managed wrapper to keep exception stacktrace (#5384)
[mono.git] / mono / metadata / marshal.c
index cc682a9eed2d39d600efd3c48176e52dec8881f0..63358bf3baff17983faf525d7d4c0fe1c9d5b5b1 100644 (file)
@@ -12366,7 +12366,7 @@ ftnptr_eh_callback_default (guint32 gchandle)
 
        mono_gchandle_free (gchandle);
 
-       mono_raise_exception (exc);
+       mono_reraise_exception (exc);
 }
 
 /*