Changeset 5291 for trunk/src/ddraw/initterm.cpp
- Timestamp:
- Mar 9, 2001, 11:48:48 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/ddraw/initterm.cpp
r5135 r5291 51 51 { 52 52 case DLL_PROCESS_ATTACH: 53 53 return TRUE; 54 54 55 55 case DLL_THREAD_ATTACH: 56 56 case DLL_THREAD_DETACH: 57 57 return TRUE; 58 58 59 59 case DLL_PROCESS_DETACH: 60 ctordtorTerm(); 61 return TRUE; 60 #ifdef __IBMCPP__ 61 ctordtorTerm(); 62 #endif 63 return TRUE; 62 64 } 63 65 return FALSE; … … 74 76 ulFlag) 75 77 { 76 size_t i;77 APIRET rc;78 78 79 79 /*-------------------------------------------------------------------------*/ … … 86 86 case 0 : 87 87 { 88 #ifdef __IBMCPP__ 88 89 ctordtorInit(); 89 90 90 #endif 91 DosQueryModuleName(hModule, CCHMAXPATH, ddrawPath); 91 92 char *endofpath = strrchr(ddrawPath, '\\'); 92 93 if(endofpath) *(endofpath+1) = 0; … … 94 95 CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed 98-03-18 05:28:48*/ 95 96 96 97 dllHandle = RegisterLxDll(hModule, LibMain, (PVOID)&_Resource_PEResTab, 97 98 DDRAW_MAJORIMAGE_VERSION, DDRAW_MINORIMAGE_VERSION, 98 99 IMAGE_SUBSYSTEM_WINDOWS_GUI); 99 if(dllHandle == 0) 100 100 if(dllHandle == 0) 101 return 0UL; 101 102 102 103 break; … … 104 105 case 1 : 105 106 if(dllHandle) { 106 107 UnregisterLxDll(dllHandle); 107 108 } 108 109 break;
Note:
See TracChangeset
for help on using the changeset viewer.