Commit 618a4e91 authored by Peter Hunnisett's avatar Peter Hunnisett Committed by Alexandre Julliard

atexit doesn't take a _onexit_t parameter.

parent d2a8f01a
...@@ -191,12 +191,13 @@ void MSVCRT_exit(int exitcode) ...@@ -191,12 +191,13 @@ void MSVCRT_exit(int exitcode)
/********************************************************************* /*********************************************************************
* atexit (MSVCRT.@) * atexit (MSVCRT.@)
*/ */
int MSVCRT_atexit(_onexit_t func) int MSVCRT_atexit(void (*func)(void))
{ {
TRACE("(%p)\n", func); TRACE("(%p)\n", func);
return _onexit(func) == func ? 0 : -1; return _onexit((_onexit_t)func) == (_onexit_t)func ? 0 : -1;
} }
/********************************************************************* /*********************************************************************
* _purecall (MSVCRT.@) * _purecall (MSVCRT.@)
*/ */
......
...@@ -138,7 +138,7 @@ char* _ultoa(unsigned long,char*,int); ...@@ -138,7 +138,7 @@ char* _ultoa(unsigned long,char*,int);
void MSVCRT(_exit)(int); void MSVCRT(_exit)(int);
void MSVCRT(abort)(); void MSVCRT(abort)();
int MSVCRT(abs)(int); int MSVCRT(abs)(int);
int MSVCRT(atexit)(_onexit_t); int MSVCRT(atexit)(void (*)(void));
double MSVCRT(atof)(const char*); double MSVCRT(atof)(const char*);
int MSVCRT(atoi)(const char*); int MSVCRT(atoi)(const char*);
long MSVCRT(atol)(const char*); long MSVCRT(atol)(const char*);
......
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