mscoree: Don't return from _CorExeMain.

Testing on Windows shows that unmanaged threads do not keep the
process open after a .NET program's entry point and all .NET
foreground threads have exited.

Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Vincent Povirk 2019-04-04 10:21:59 -05:00 committed by Alexandre Julliard
parent 23181b40c5
commit fe4f00681e
1 changed files with 2 additions and 0 deletions

View File

@ -1524,6 +1524,8 @@ __int32 WINAPI _CorExeMain(void)
mono_runtime_quit();
}
ExitProcess(exit_code);
return exit_code;
}