Changeset 6648 for trunk/src/oleaut32/initterm.cpp
- Timestamp:
- Sep 5, 2001, 3:19:02 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/oleaut32/initterm.cpp
r5135 r6648 1 /* $Id: initterm.cpp,v 1.10 2001-09-05 13:19:00 bird Exp $ */ 1 2 /* 2 3 * DLL entry point … … 59 60 { 60 61 case DLL_PROCESS_ATTACH: 61 62 return TRUE; 62 63 63 64 case DLL_THREAD_ATTACH: 64 65 case DLL_THREAD_DETACH: 65 66 return TRUE; 66 67 67 68 case DLL_PROCESS_DETACH: 68 69 70 69 ctordtorTerm(); 70 ClosePrivateLogFiles(); 71 return TRUE; 71 72 } 72 73 return FALSE; … … 95 96 case 0 : 96 97 { 97 98 loadNr = globLoadNr++; 98 99 99 100 101 100 DosQueryModuleName(hModule, sizeof(oleaut32Path), oleaut32Path); 101 char *endofpath = strrchr(oleaut32Path, '\\'); 102 *(endofpath+1) = 0; 102 103 103 104 ctordtorInit(); … … 105 106 CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed 98-03-18 05:28:48*/ 106 107 107 108 if(dllHandle == 0) 109 108 dllHandle = RegisterLxDll(hModule, LibMain, (PVOID)&_Resource_PEResTab); 109 if(dllHandle == 0) 110 return 0UL; 110 111 111 112 #ifdef DEFAULT_LOGGING_OFF 112 113 if(getenv("WIN32LOG_ENABLED")) { 113 114 #else 114 115 if(!getenv("NOWIN32LOG")) { 115 116 #endif 116 117 117 OpenPrivateLogFiles(); 118 } 118 119 Hash_Initialise(); 119 120 … … 122 123 case 1 : 123 124 if(dllHandle) { 124 125 UnregisterLxDll(dllHandle); 125 126 } 126 127 break;
Note:
See TracChangeset
for help on using the changeset viewer.