Piotr Caban (@piotr) commented about dlls/msvcrt/exit.c:
_cputs("\nabnormal program termination\n"); } #endif + +#if _MSVCR_VER > 0 + if (MSVCRT_abort_behavior & _CALL_REPORTFAULT) + DebugBreak();
I have tested it with ucrtbase and calling `DebugBreak` looks wrong. I'm getting 0xc0000409 exception. While the code of the exception may be misleading - this is the result of calling `fastfail(FAST_FAIL_FATAL_APP_EXIT)` (https://learn.microsoft.com/en-us/shows/inside/c0000409). I don't know what should happen if `fastfail` and I'm not sure if it's easily testable (maybe with msvcrt.dll if it behaves differently). `raise(SIGABRT)` should be called before handling `_CALL_REPORTFAULT` flag. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/10250#note_131454