- Timestamp:
- Jul 29, 2002, 1:26:49 PM (23 years ago)
- Location:
- trunk/src/gdi32
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gdi32/initgdi32.cpp
r8099 r8934 1 /* $Id: initgdi32.cpp,v 1.1 2 2002-03-18 13:18:44sandervl Exp $1 /* $Id: initgdi32.cpp,v 1.13 2002-07-29 11:26:48 sandervl Exp $ 2 2 * 3 3 * DLL entry point … … 56 56 { 57 57 case DLL_PROCESS_ATTACH: 58 return TRUE;58 return TRUE; 59 59 60 60 case DLL_THREAD_ATTACH: 61 61 case DLL_THREAD_DETACH: 62 return TRUE;62 return TRUE; 63 63 64 64 case DLL_PROCESS_DETACH: 65 STATS_DumpStatsGDI32(); 66 ctordtorTerm(); 67 return TRUE; 65 STATS_DumpStatsGDI32(); 66 return TRUE; 68 67 } 69 68 return FALSE; -
trunk/src/gdi32/initterm.cpp
r6646 r8934 1 /* $Id: initterm.cpp,v 1.2 0 2001-09-05 12:53:52 birdExp $1 /* $Id: initterm.cpp,v 1.21 2002-07-29 11:26:49 sandervl Exp $ 2 2 * 3 3 * DLL entry point … … 34 34 #include <winconst.h> 35 35 #include <odinlx.h> 36 #include <misc.h> /*PLF Wed 98-03-18 23:18:15*/ 36 #include <dbglog.h> 37 #include "region.h" 38 #include <initdll.h> 39 #include <exitlist.h> 40 37 41 #define DBG_LOCALLOG DBG_initterm 38 42 #include "dbglocal.h" 39 #include "region.h" 40 #include <initdll.h> 43 44 45 /*-------------------------------------------------------------------*/ 46 /* A clean up routine registered with DosExitList must be used if */ 47 /* runtime calls are required and the runtime is dynamically linked. */ 48 /* This will guarantee that this clean up routine is run before the */ 49 /* library DLL is terminated. */ 50 /*-------------------------------------------------------------------*/ 51 static void APIENTRY cleanup(ULONG reason); 41 52 42 53 /****************************************************************************/ … … 63 74 ctordtorInit(); 64 75 76 /*******************************************************************/ 77 /* A DosExitList routine must be used to clean up if runtime calls */ 78 /* are required and the runtime is dynamically linked. */ 79 /*******************************************************************/ 80 81 rc = DosExitList(EXITLIST_GDI32|EXLST_ADD, cleanup); 82 if (rc) 83 return 0UL; 84 65 85 return inittermGdi32(hModule, ulFlag); 66 86 … … 79 99 //****************************************************************************** 80 100 //****************************************************************************** 101 static void APIENTRY cleanup(ULONG ulReason) 102 { 103 dprintf(("GDI32 exit")); 104 ctordtorTerm(); 105 106 DosExitList(EXLST_EXIT, cleanup); 107 return ; 108 } 109 //****************************************************************************** 110 //******************************************************************************
Note:
See TracChangeset
for help on using the changeset viewer.