Commit 9303c6ee authored by Martin Storsjo's avatar Martin Storsjo Committed by Alexandre Julliard

ucrtbase: Hook up _crt_atexit.

parent 8c5057f3
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
@ cdecl _controlfp(long long) ucrtbase._controlfp @ cdecl _controlfp(long long) ucrtbase._controlfp
@ cdecl _controlfp_s(ptr long long) ucrtbase._controlfp_s @ cdecl _controlfp_s(ptr long long) ucrtbase._controlfp_s
@ stub _crt_at_quick_exit @ stub _crt_at_quick_exit
@ stub _crt_atexit @ cdecl _crt_atexit(ptr) ucrtbase._crt_atexit
@ stub _crt_debugger_hook @ stub _crt_debugger_hook
@ cdecl _endthread() ucrtbase._endthread @ cdecl _endthread() ucrtbase._endthread
@ cdecl _endthreadex(long) ucrtbase._endthreadex @ cdecl _endthreadex(long) ucrtbase._endthreadex
......
...@@ -326,6 +326,15 @@ int CDECL MSVCRT_atexit(void (*func)(void)) ...@@ -326,6 +326,15 @@ int CDECL MSVCRT_atexit(void (*func)(void))
} }
/********************************************************************* /*********************************************************************
* _crt_atexit (UCRTBASE.@)
*/
int CDECL MSVCRT__crt_atexit(void (*func)(void))
{
TRACE("(%p)\n", func);
return MSVCRT__onexit((MSVCRT__onexit_t)func) == (MSVCRT__onexit_t)func ? 0 : -1;
}
/*********************************************************************
* _set_purecall_handler (MSVCR71.@) * _set_purecall_handler (MSVCR71.@)
*/ */
MSVCRT_purecall_handler CDECL _set_purecall_handler(MSVCRT_purecall_handler function) MSVCRT_purecall_handler CDECL _set_purecall_handler(MSVCRT_purecall_handler function)
......
...@@ -241,7 +241,7 @@ ...@@ -241,7 +241,7 @@
@ cdecl _creat(str long) MSVCRT__creat @ cdecl _creat(str long) MSVCRT__creat
@ cdecl _create_locale(long str) MSVCRT__create_locale @ cdecl _create_locale(long str) MSVCRT__create_locale
@ stub _crt_at_quick_exit @ stub _crt_at_quick_exit
@ stub _crt_atexit @ cdecl _crt_atexit(ptr) MSVCRT__crt_atexit
@ stub _crt_debugger_hook @ stub _crt_debugger_hook
@ cdecl _ctime32(ptr) MSVCRT__ctime32 @ cdecl _ctime32(ptr) MSVCRT__ctime32
@ cdecl _ctime32_s(str long ptr) MSVCRT__ctime32_s @ cdecl _ctime32_s(str long ptr) MSVCRT__ctime32_s
......
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