Changeset 510 for trunk/src/user32/initterm.cpp
- Timestamp:
- Aug 16, 1999, 6:28:05 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/initterm.cpp
r225 r510 1 /* $Id: initterm.cpp,v 1. 5 1999-06-27 16:23:23sandervl Exp $ */1 /* $Id: initterm.cpp,v 1.6 1999-08-16 16:28:04 sandervl Exp $ */ 2 2 3 3 /* … … 37 37 #include <spy.h> 38 38 39 extern "C" {40 /*-------------------------------------------------------------------*/41 /* _CRT_init is the C run-time environment initialization function. */42 /* It will return 0 to indicate success and -1 to indicate failure. */43 /*-------------------------------------------------------------------*/44 int CDECL CRT_init(void);45 /*-------------------------------------------------------------------*/46 /* _CRT_term is the C run-time environment termination function. */47 /* It only needs to be called when the C run-time functions are */48 /* statically linked. */49 /*-------------------------------------------------------------------*/50 void CDECL CRT_term(void);51 void CDECL _ctordtorInit( void );52 void CDECL _ctordtorTerm( void );53 }54 55 39 /*-------------------------------------------------------------------*/ 56 40 /* A clean up routine registered with DosExitList must be used if */ … … 61 45 static void APIENTRY cleanup(ULONG reason); 62 46 static void APIENTRY cleanupQueue(ULONG ulReason); 63 64 47 65 48 … … 86 69 switch (ulFlag) { 87 70 case 0 : 88 89 /*******************************************************************/90 /* The C run-time environment initialization function must be */91 /* called before any calls to C run-time functions that are not */92 /* inlined. */93 /*******************************************************************/94 95 if (CRT_init() == -1)96 return 0UL;97 _ctordtorInit();98 99 71 CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed 98-03-18 05:28:48*/ 100 72 /*******************************************************************/ … … 103 75 /*******************************************************************/ 104 76 105 rc = DosExitList(0x0000F F00|EXLST_ADD, cleanup);77 rc = DosExitList(0x0000F000|EXLST_ADD, cleanup); 106 78 if(rc) 107 79 return 0UL; … … 132 104 { 133 105 CloseSpyQueue(); 106 DosExitList(EXLST_EXIT, cleanupQueue); 107 return; 134 108 } 135 109 … … 138 112 dprintf(("user32 exit\n")); 139 113 UnregisterSystemClasses(); 140 _ctordtorTerm();141 CRT_term();142 114 dprintf(("user32 exit done\n")); 143 115 DosExitList(EXLST_EXIT, cleanup);
Note:
See TracChangeset
for help on using the changeset viewer.