Merge pull request #3132 from alexanderkyte/libmono_safe_undefined
[mono.git] / mono / metadata / coree.c
index f0e2f0d58c8fcbf1fdc89d337f116e67a0376762..4436229376e10101b1d16f827601c72f466d2328 100644 (file)
@@ -23,6 +23,7 @@
 #include "domain-internals.h"
 #include "appdomain.h"
 #include "object.h"
+#include "object-internals.h"
 #include "loader.h"
 #include "threads.h"
 #include "environment.h"
@@ -198,7 +199,7 @@ __int32 STDMETHODCALLTYPE _CorExeMain(void)
        LocalFree (argvw);
 
        mono_runtime_run_main_checked (method, argc, argv, &error);
-       mono_error_raise_exception (&error); /* FIXME don't raise here */
+       mono_error_raise_exception (&error); /* OK, triggers unhandled exn handler */
        mono_thread_manage ();
 
        mono_runtime_quit ();