From bb648917b63ab6dfcfa7e62d70f2e3a6510ee2a9 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Fri, 21 Oct 2005 15:55:20 +0000 Subject: [PATCH] _cexit should call the atexit functions. --- dlls/msvcrt/exit.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dlls/msvcrt/exit.c b/dlls/msvcrt/exit.c index 259368e6d13..c4e6f7061f5 100644 --- a/dlls/msvcrt/exit.c +++ b/dlls/msvcrt/exit.c @@ -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); } -- 2.11.4.GIT