32#define LOCK_EXIT _lock(_EXIT_LOCK1)
33#define UNLOCK_EXIT _unlock(_EXIT_LOCK1)
47 0, 0, { (
DWORD_PTR)(__FILE__
": MSVCRT_onexit_cs") }
54#if _MSVCR_VER > 0 || defined(_DEBUG)
83 WARN(
"failed to allocate initial table.\n");
98 WARN(
"failed to grow table.\n");
163 FIXME(
"bad table\n");
189 TRACE(
"(%d)\n", exitcode);
201 L"Press OK to exit the program, or Cancel to start the Wine debugger.\n",
204 msgbox.
cbSize =
sizeof(msgbox);
222 wchar_t leadW[1024],
messageW[1024];
235 TRACE(
"(%d)\n", errnum);
245 _cprintf(
"\nruntime error R60%d\n",errnum);
256#if (_MSVCR_VER > 0 && _MSVCR_VER < 100) || _MSVCR_VER == 120 || defined(_DEBUG)
262 DoMessageBox(
"Runtime error!",
"abnormal program termination");
265 _cputs(
"\nabnormal program termination\n");
279 unsigned int old = MSVCRT_abort_behavior;
283 FIXME(
"_WRITE_CALL_REPORTFAULT unhandled\n");
285 MSVCRT_abort_behavior = (MSVCRT_abort_behavior &
~mask) | (
flags &
mask);
369 TRACE(
"(%d)\n",exitcode);
379 pCorExitProcess(exitcode);
411 TRACE(
"(%d)\n", exitcode);
474 TRACE(
"(%p)\n", function);
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
INT copy(TCHAR source[MAX_PATH], TCHAR dest[MAX_PATH], INT append, DWORD lpdwFlags, BOOL bTouch)
#define DLL_PROCESS_DETACH
#define GetProcAddress(x, y)
static const WCHAR messageW[]
HMODULE WINAPI GetModuleHandleW(LPCWSTR lpModuleName)
VOID WINAPI ExitProcess(IN UINT uExitCode)
int CDECL _cputs(const char *str)
int WINAPIV _cprintf(const char *format,...)
wchar_t * MSVCRT__wpgmptr
static void DoMessageBox(const char *lead, const char *message)
static int execute_onexit_table(_onexit_table_t *table)
static _onexit_table_t MSVCRT_atexit_table
void DECLSPEC_NORETURN CDECL _wassert(const wchar_t *str, const wchar_t *file, unsigned int line)
static void DoMessageBoxW(const wchar_t *lead, const wchar_t *message)
void CDECL _purecall(void)
static _purecall_handler purecall_handler
int CDECL _set_error_mode(int mode)
void CDECL _amsg_exit(int errnum)
void CDECL _register_thread_local_exe_atexit_callback(_tls_callback_type callback)
static void call_atexit(void)
static CRITICAL_SECTION MSVCRT_onexit_cs
static int register_onexit_function(_onexit_table_t *table, _onexit_t func)
static _tls_callback_type tls_atexit_callback
static CRITICAL_SECTION_DEBUG MSVCRT_onexit_cs_debug
void DECLSPEC_NORETURN CDECL _assert(const char *str, const char *file, unsigned int line)
void(__stdcall * _tls_callback_type)(void *, ULONG, void *)
void CDECL _exit(int exitcode)
_onexit_t CDECL _onexit(_onexit_t func)
_onexit_t CDECL __dllonexit(_onexit_t func, _onexit_t **start, _onexit_t **end)
static int initialize_onexit_table(_onexit_table_t *table)
int CDECL MSVCRT_atexit(void(__cdecl *func)(void))
static int MSVCRT_error_mode
int WINAPIV fwprintf(FILE *file, const wchar_t *format,...)
#define DECLSPEC_NORETURN
_ACRTIMP int __cdecl _initialize_onexit_table(_onexit_table_t *)
int(__cdecl * _onexit_t)(void)
_ACRTIMP int __cdecl _crt_atexit(_PVFV)
_ACRTIMP int __cdecl _register_onexit_function(_onexit_table_t *, _onexit_t)
_ACRTIMP int __cdecl _crt_at_quick_exit(_PVFV)
void(__cdecl * _PVFV)(void)
_ACRTIMP int __cdecl _execute_onexit_table(_onexit_table_t *)
_ACRTIMP int __cdecl _snwprintf(wchar_t *, size_t, const wchar_t *,...)
_ACRTIMP DECLSPEC_NORETURN void __cdecl quick_exit(int)
#define _CALL_REPORTFAULT
_ACRTIMP _purecall_handler __cdecl _get_purecall_handler(void)
_ACRTIMP _purecall_handler __cdecl _set_purecall_handler(_purecall_handler)
_ACRTIMP unsigned int __cdecl _set_abort_behavior(unsigned int flags, unsigned int mask)
Specifies the behavior of the abort() function.
void(__cdecl * _purecall_handler)(void)
static const WCHAR fileW[]
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
static IPrintDialogCallback callback
DWORD_PTR dwContextHelpId
MSGBOXCALLBACK lpfnMsgBoxCallback
LIST_ENTRY ProcessLocksList
void WINAPI LeaveCriticalSection(LPCRITICAL_SECTION)
void WINAPI DebugBreak(void)
void WINAPI EnterCriticalSection(LPCRITICAL_SECTION)
HWND WINAPI GetActiveWindow(void)
int WINAPI MessageBoxIndirectW(_In_ CONST MSGBOXPARAMSW *lpmbp)