Error 26 prints string: not enough space for stdio initialization
---
 mingw-w64-crt/crt/crtexe.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mingw-w64-crt/crt/crtexe.c b/mingw-w64-crt/crt/crtexe.c
index 86c3842f6162..66fad2c8cb29 100644
--- a/mingw-w64-crt/crt/crtexe.c
+++ b/mingw-w64-crt/crt/crtexe.c
@@ -209,7 +209,7 @@ __tmainCRTStartup (void)
         * Here we add an exit handler to flush streams safely.
         */
        if (atexit (safe_flush) != 0)
-           abort ();
+         _amsg_exit (26); /* _RT_STDIOINIT */
 
        _pei386_runtime_relocator ();
        _set_invalid_parameter_handler (__mingw_invalidParameterHandler);
-- 
2.20.1



_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to