[PATCH] mscoree: Don't return from _CorExeMain.
Vincent Povirk
vincent at codeweavers.com
Thu Apr 4 10:21:59 CDT 2019
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 at codeweavers.com>
---
dlls/mscoree/corruntimehost.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/dlls/mscoree/corruntimehost.c b/dlls/mscoree/corruntimehost.c
index ca8ba0dc01f..95f6a9a892e 100644
--- a/dlls/mscoree/corruntimehost.c
+++ b/dlls/mscoree/corruntimehost.c
@@ -1524,6 +1524,8 @@ __int32 WINAPI _CorExeMain(void)
mono_runtime_quit();
}
+ ExitProcess(exit_code);
+
return exit_code;
}
--
2.17.1
More information about the wine-devel
mailing list