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