Changeset 3993 for trunk/src/opengl
- Timestamp:
- Aug 11, 2000, 12:56:27 PM (25 years ago)
- Location:
- trunk/src/opengl
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/opengl/glide/cvg/initterm.cpp
r2888 r3993 1 /* $Id: initterm.cpp,v 1. 1 2000-02-25 00:37:33sandervl Exp $ */1 /* $Id: initterm.cpp,v 1.2 2000-08-11 10:56:22 sandervl Exp $ */ 2 2 3 3 /* … … 42 42 extern DWORD _Resource_PEResTab; 43 43 } 44 static HMODULE dllHandle = 0; 44 45 45 46 BOOL WINAPI DllMain(HANDLE hInst, ULONG ul_reason_for_call, LPVOID lpReserved); … … 89 90 CheckVersionFromHMOD(PE2LX_VERSION, hModule);/* PLF Wed 98-03-18 05:28:48*/ 90 91 91 /*******************************************************************/ 92 /* A DosExitList routine must be used to clean up if runtime calls */ 93 /* are required and the runtime is dynamically linked. */ 94 /*******************************************************************/ 95 96 if(RegisterLxDll(hModule, LibMain, (PVOID)&_Resource_PEResTab) == FALSE) 97 return 0UL; 92 dllHandle = RegisterLxDll(hModule, LibMain, (PVOID)&_Resource_PEResTab); 93 if(dllHandle == 0) 94 return 0UL; 98 95 99 96 break; 100 101 97 case 1 : 102 UnregisterLxDll(hModule); 98 if(dllHandle) { 99 UnregisterLxDll(dllHandle); 100 } 103 101 break; 104 102 -
trunk/src/opengl/glide/sst1/initterm.cpp
r2885 r3993 1 /* $Id: initterm.cpp,v 1. 1 2000-02-25 00:31:06sandervl Exp $ */1 /* $Id: initterm.cpp,v 1.2 2000-08-11 10:56:22 sandervl Exp $ */ 2 2 3 3 /* … … 42 42 extern DWORD _Resource_PEResTab; 43 43 } 44 static HMODULE dllHandle = 0; 44 45 45 46 BOOL WINAPI DllMain(HANDLE hInst, ULONG ul_reason_for_call, LPVOID lpReserved); … … 89 90 CheckVersionFromHMOD(PE2LX_VERSION, hModule);/* PLF Wed 98-03-18 05:28:48*/ 90 91 91 /*******************************************************************/ 92 /* A DosExitList routine must be used to clean up if runtime calls */ 93 /* are required and the runtime is dynamically linked. */ 94 /*******************************************************************/ 95 96 if(RegisterLxDll(hModule, LibMain, (PVOID)&_Resource_PEResTab) == FALSE) 97 return 0UL; 92 dllHandle = RegisterLxDll(hModule, LibMain, (PVOID)&_Resource_PEResTab); 93 if(dllHandle == 0) 94 return 0UL; 98 95 99 96 break; 100 101 97 case 1 : 102 UnregisterLxDll(hModule); 98 if(dllHandle) { 99 UnregisterLxDll(dllHandle); 100 } 103 101 break; 104 102 -
trunk/src/opengl/glu/initterm.cpp
r2996 r3993 1 /* $Id: initterm.cpp,v 1. 7 2000-03-04 19:10:12 jeroenExp $ */1 /* $Id: initterm.cpp,v 1.8 2000-08-11 10:56:22 sandervl Exp $ */ 2 2 3 3 /* … … 43 43 extern DWORD _Resource_PEResTab; 44 44 } 45 static HMODULE dllHandle = 0; 45 46 46 47 //****************************************************************************** … … 86 87 _ctordtorInit(); 87 88 88 /*******************************************************************/89 /* A DosExitList routine must be used to clean up if runtime calls */90 /* are required and the runtime is dynamically linked. */91 /*******************************************************************/92 93 if(RegisterLxDll(hModule, LibMain, (PVOID)&_Resource_PEResTab) == FALSE)94 return 0UL;95 96 89 CheckVersionFromHMOD(PE2LX_VERSION, hModule);/* PLF Wed 98-03-18 05:28:48*/ 97 90 91 dllHandle = RegisterLxDll(hModule, LibMain, (PVOID)&_Resource_PEResTab); 92 if(dllHandle == 0) 93 return 0UL; 94 98 95 break; 99 100 96 case 1 : 101 UnregisterLxDll(hModule); 97 if(dllHandle) { 98 UnregisterLxDll(dllHandle); 99 } 102 100 break; 103 101 -
trunk/src/opengl/glut/initterm.cpp
r2996 r3993 1 /* $Id: initterm.cpp,v 1. 8 2000-03-04 19:10:16 jeroenExp $ */1 /* $Id: initterm.cpp,v 1.9 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 void CDECL Glut32Terminate(void); … … 88 89 _ctordtorInit(); 89 90 90 /*******************************************************************/91 /* A DosExitList routine must be used to clean up if runtime calls */92 /* are required and the runtime is dynamically linked. */93 /*******************************************************************/94 95 if(RegisterLxDll(hModule, LibMain, (PVOID)&_Resource_PEResTab) == FALSE)96 return 0UL;97 98 91 CheckVersionFromHMOD(PE2LX_VERSION, hModule);/* PLF Wed 98-03-18 05:28:48*/ 99 92 93 dllHandle = RegisterLxDll(hModule, LibMain, (PVOID)&_Resource_PEResTab); 94 if(dllHandle == 0) 95 return 0UL; 96 100 97 break; 101 102 98 case 1 : 103 UnregisterLxDll(hModule); 99 if(dllHandle) { 100 UnregisterLxDll(dllHandle); 101 } 104 102 break; 105 103 -
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.