Commit bb648917 authored by Alexandre Julliard's avatar Alexandre Julliard

_cexit should call the atexit functions.

parent c0b79e0b
......@@ -190,7 +190,9 @@ void MSVCRT__c_exit(void)
void MSVCRT__cexit(void)
{
TRACE("(void)\n");
/* All cleanup is done on DLL detach; Return to caller */
LOCK_EXIT;
__MSVCRT__call_atexit();
UNLOCK_EXIT;
}
/*********************************************************************
......@@ -233,9 +235,7 @@ MSVCRT__onexit_t MSVCRT__onexit(MSVCRT__onexit_t func)
void MSVCRT_exit(int exitcode)
{
TRACE("(%d)\n",exitcode);
LOCK_EXIT;
__MSVCRT__call_atexit();
UNLOCK_EXIT;
MSVCRT__cexit();
ExitProcess(exitcode);
}
......
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