ucrtbase: Hook up _crt_atexit.

This commit is contained in:
Martin Storsjo 2015-08-27 00:06:35 +03:00 committed by Alexandre Julliard
parent 8c5057f334
commit 9303c6eeed
3 changed files with 11 additions and 2 deletions

View File

@ -29,7 +29,7 @@
@ cdecl _controlfp(long long) ucrtbase._controlfp
@ cdecl _controlfp_s(ptr long long) ucrtbase._controlfp_s
@ stub _crt_at_quick_exit
@ stub _crt_atexit
@ cdecl _crt_atexit(ptr) ucrtbase._crt_atexit
@ stub _crt_debugger_hook
@ cdecl _endthread() ucrtbase._endthread
@ cdecl _endthreadex(long) ucrtbase._endthreadex

View File

@ -325,6 +325,15 @@ int CDECL MSVCRT_atexit(void (*func)(void))
return MSVCRT__onexit((MSVCRT__onexit_t)func) == (MSVCRT__onexit_t)func ? 0 : -1;
}
/*********************************************************************
* _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.@)
*/

View File

@ -241,7 +241,7 @@
@ cdecl _creat(str long) MSVCRT__creat
@ cdecl _create_locale(long str) MSVCRT__create_locale
@ stub _crt_at_quick_exit
@ stub _crt_atexit
@ cdecl _crt_atexit(ptr) MSVCRT__crt_atexit
@ stub _crt_debugger_hook
@ cdecl _ctime32(ptr) MSVCRT__ctime32
@ cdecl _ctime32_s(str long ptr) MSVCRT__ctime32_s