Commit 1bc84577 authored by Fabian Maurer's avatar Fabian Maurer Committed by Alexandre Julliard

msvcrt: Use cdecl calling convention for atexit callback.

parent f90a32d5
......@@ -397,7 +397,7 @@ void CDECL MSVCRT_exit(int exitcode)
/*********************************************************************
* atexit (MSVCRT.@)
*/
int CDECL MSVCRT_atexit(void (*func)(void))
int CDECL MSVCRT_atexit(void (__cdecl *func)(void))
{
TRACE("(%p)\n", func);
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.@)
*/
int CDECL MSVCRT__crt_atexit(void (*func)(void))
int CDECL MSVCRT__crt_atexit(void (__cdecl *func)(void))
{
TRACE("(%p)\n", func);
return MSVCRT__onexit((MSVCRT__onexit_t)func) == (MSVCRT__onexit_t)func ? 0 : -1;
......
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