Changeset 3993 for trunk/src/opengl/mesa
- Timestamp:
- Aug 11, 2000, 12:56:27 PM (25 years ago)
- Location:
- trunk/src/opengl/mesa
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/opengl/mesa/3dfx/initterm.cpp
r2938 r3993 1 /* $Id: initterm.cpp,v 1. 1 2000-02-29 00:46:18sandervl Exp $ */1 /* $Id: initterm.cpp,v 1.2 2000-08-11 10:56:23 sandervl Exp $ */ 2 2 3 3 /* … … 44 44 extern DWORD _Resource_PEResTab; 45 45 } 46 static HMODULE dllHandle = 0; 46 47 47 48 int cleangraphics(void); … … 92 93 CheckVersionFromHMOD(PE2LX_VERSION, hModule);/* PLF Wed 98-03-18 05:28:48*/ 93 94 94 /*******************************************************************/ 95 /* A DosExitList routine must be used to clean up if runtime calls */ 96 /* are required and the runtime is dynamically linked. */ 97 /*******************************************************************/ 98 99 if(RegisterLxDll(hModule, LibMain, (PVOID)&_Resource_PEResTab) == FALSE) 100 return 0UL; 95 dllHandle = RegisterLxDll(hModule, LibMain, (PVOID)&_Resource_PEResTab); 96 if(dllHandle == 0) 97 return 0UL; 101 98 102 99 break; 103 100 104 101 case 1 : 105 UnregisterLxDll(hModule); 102 if(dllHandle) { 103 UnregisterLxDll(dllHandle); 104 } 106 105 break; 107 106 -
trunk/src/opengl/mesa/initterm.cpp
r3598 r3993 1 /* $Id: initterm.cpp,v 1. 4 2000-05-23 20:40:38 jeroenExp $ */1 /* $Id: initterm.cpp,v 1.5 2000-08-11 10:56:23 sandervl Exp $ */ 2 2 3 3 /* … … 44 44 extern DWORD _Resource_PEResTab; 45 45 } 46 static HMODULE dllHandle = 0; 46 47 47 48 #ifdef DIVE … … 97 98 CheckVersionFromHMOD(PE2LX_VERSION, hModule);/* PLF Wed 98-03-18 05:28:48*/ 98 99 99 /*******************************************************************/ 100 /* A DosExitList routine must be used to clean up if runtime calls */ 101 /* are required and the runtime is dynamically linked. */ 102 /*******************************************************************/ 103 104 if(RegisterLxDll(hModule, LibMain, (PVOID)&_Resource_PEResTab) == FALSE) 105 return 0UL; 100 dllHandle = RegisterLxDll(hModule, LibMain, (PVOID)&_Resource_PEResTab); 101 if(dllHandle == 0) 102 return 0UL; 106 103 107 104 #ifdef DIVE … … 112 109 113 110 case 1 : 114 UnregisterLxDll(hModule); 111 if(dllHandle) { 112 UnregisterLxDll(dllHandle); 113 } 115 114 break; 116 115
Note:
See TracChangeset
for help on using the changeset viewer.