Always use _exit to terminate (for now)

This commit is contained in:
2025-10-09 13:14:59 -06:00
parent dc5a91c480
commit e185629d19
6 changed files with 18 additions and 7 deletions

View File

@@ -1,5 +1,6 @@
#include "common.h"
#include "context.h"
#include "kernel32/internal.h"
#include "modules.h"
namespace mscoree {
@@ -7,7 +8,7 @@ namespace mscoree {
void WIN_FUNC CorExitProcess(int exitCode) {
HOST_CONTEXT_GUARD();
DEBUG_LOG("CorExitProcess(%i)\n", exitCode);
exit(exitCode);
kernel32::exitInternal(exitCode);
}
} // namespace mscoree