msvcrt: Use cdecl calling convention for atexit callback.

Signed-off-by: Fabian Maurer <dark.shadow4@web.de>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Fabian Maurer 2018-07-09 18:03:41 +02:00 committed by Alexandre Julliard
parent f90a32d5ab
commit 1bc84577ff
1 changed files with 2 additions and 2 deletions

View File

@ -397,7 +397,7 @@ void CDECL MSVCRT_exit(int exitcode)
/********************************************************************* /*********************************************************************
* atexit (MSVCRT.@) * atexit (MSVCRT.@)
*/ */
int CDECL MSVCRT_atexit(void (*func)(void)) int CDECL MSVCRT_atexit(void (__cdecl *func)(void))
{ {
TRACE("(%p)\n", func); TRACE("(%p)\n", func);
return MSVCRT__onexit((MSVCRT__onexit_t)func) == (MSVCRT__onexit_t)func ? 0 : -1; return MSVCRT__onexit((MSVCRT__onexit_t)func) == (MSVCRT__onexit_t)func ? 0 : -1;
@ -408,7 +408,7 @@ int CDECL MSVCRT_atexit(void (*func)(void))
/********************************************************************* /*********************************************************************
* _crt_atexit (UCRTBASE.@) * _crt_atexit (UCRTBASE.@)
*/ */
int CDECL MSVCRT__crt_atexit(void (*func)(void)) int CDECL MSVCRT__crt_atexit(void (__cdecl *func)(void))
{ {
TRACE("(%p)\n", func); TRACE("(%p)\n", func);
return MSVCRT__onexit((MSVCRT__onexit_t)func) == (MSVCRT__onexit_t)func ? 0 : -1; return MSVCRT__onexit((MSVCRT__onexit_t)func) == (MSVCRT__onexit_t)func ? 0 : -1;