diff --git a/dll/win32/crtdll/dllmain.c b/dll/win32/crtdll/dllmain.c index 41e481da858..8d6af8c69b2 100644 --- a/dll/win32/crtdll/dllmain.c +++ b/dll/win32/crtdll/dllmain.c @@ -32,7 +32,6 @@ extern void __getmainargs( int *argc, char ***argv, char ***envp, extern int BlockEnvToEnvironA(void); extern int BlockEnvToEnvironW(void); extern void FreeEnvironment(char **environment); -extern void _atexit_cleanup(void); extern unsigned int _osver; extern unsigned int _winminor; diff --git a/sdk/lib/crt/stdlib/atexit.c b/sdk/lib/crt/stdlib/atexit.c index 6ab8942b333..49247baddc7 100644 --- a/sdk/lib/crt/stdlib/atexit.c +++ b/sdk/lib/crt/stdlib/atexit.c @@ -69,7 +69,7 @@ _onexit_t CDECL _onexit(_onexit_t func) { _onexit_t *newtable; TRACE("expanding table\n"); - newtable = calloc(atexit_table_size + 32, sizeof(void *)); + newtable = calloc(atexit_table_size + 32, sizeof(_onexit_t)); if (!newtable) { TRACE("failed!\n");