Commit f415b5dd authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

msvcrt: Use raise(SIGABRT) for abort() and assert().

parent bb5a20c6
......@@ -155,6 +155,8 @@ void CDECL MSVCRT_abort(void)
}
else
_cputs("\nabnormal program termination\n");
MSVCRT_raise(MSVCRT_SIGABRT);
/* in case raise() returns */
MSVCRT__exit(3);
}
......@@ -172,6 +174,8 @@ void CDECL MSVCRT__assert(const char* str, const char* file, unsigned int line)
}
else
_cprintf("Assertion failed: %s, file %s, line %d\n\n",str, file, line);
MSVCRT_raise(MSVCRT_SIGABRT);
/* in case raise() returns */
MSVCRT__exit(3);
}
......
......@@ -611,6 +611,7 @@ MSVCRT_FILE* MSVCRT__fdopen(int, const char *);
int MSVCRT_vsnprintf(char *str, unsigned int len, const char *format, va_list valist);
int MSVCRT_vsnwprintf(MSVCRT_wchar_t *str, unsigned int len,
const MSVCRT_wchar_t *format, va_list valist );
int MSVCRT_raise(int sig);
#ifndef __WINE_MSVCRT_TEST
int _write(int,const void*,unsigned int);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment