Changeset 3993 for trunk/src/opengl


Ignore:
Timestamp:
Aug 11, 2000, 12:56:27 PM (25 years ago)
Author:
sandervl
Message:

Updates for fake system dll headers

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:33 sandervl Exp $ */
     1/* $Id: initterm.cpp,v 1.2 2000-08-11 10:56:22 sandervl Exp $ */
    22
    33/*
     
    4242 extern DWORD _Resource_PEResTab;
    4343}
     44static HMODULE dllHandle = 0;
    4445
    4546BOOL WINAPI DllMain(HANDLE hInst, ULONG  ul_reason_for_call, LPVOID lpReserved);
     
    8990         CheckVersionFromHMOD(PE2LX_VERSION, hModule);/* PLF Wed  98-03-18 05:28:48*/
    9091
    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;
    9895
    9996         break;
    100 
    10197      case 1 :
    102          UnregisterLxDll(hModule);
     98         if(dllHandle) {
     99                UnregisterLxDll(dllHandle);
     100         }
    103101         break;
    104102
  • trunk/src/opengl/glide/sst1/initterm.cpp

    r2885 r3993  
    1 /* $Id: initterm.cpp,v 1.1 2000-02-25 00:31:06 sandervl Exp $ */
     1/* $Id: initterm.cpp,v 1.2 2000-08-11 10:56:22 sandervl Exp $ */
    22
    33/*
     
    4242 extern DWORD _Resource_PEResTab;
    4343}
     44static HMODULE dllHandle = 0;
    4445
    4546BOOL WINAPI DllMain(HANDLE hInst, ULONG  ul_reason_for_call, LPVOID lpReserved);
     
    8990         CheckVersionFromHMOD(PE2LX_VERSION, hModule);/* PLF Wed  98-03-18 05:28:48*/
    9091
    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;
    9895
    9996         break;
    100 
    10197      case 1 :
    102          UnregisterLxDll(hModule);
     98         if(dllHandle) {
     99                UnregisterLxDll(dllHandle);
     100         }
    103101         break;
    104102
  • trunk/src/opengl/glu/initterm.cpp

    r2996 r3993  
    1 /* $Id: initterm.cpp,v 1.7 2000-03-04 19:10:12 jeroen Exp $ */
     1/* $Id: initterm.cpp,v 1.8 2000-08-11 10:56:22 sandervl Exp $ */
    22
    33/*
     
    4343 extern DWORD _Resource_PEResTab;
    4444}
     45static HMODULE dllHandle = 0;
    4546
    4647//******************************************************************************
     
    8687         _ctordtorInit();
    8788
    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 
    9689         CheckVersionFromHMOD(PE2LX_VERSION, hModule);/* PLF Wed  98-03-18 05:28:48*/
    9790
     91         dllHandle = RegisterLxDll(hModule, LibMain, (PVOID)&_Resource_PEResTab);
     92         if(dllHandle == 0)
     93                return 0UL;
     94
    9895         break;
    99 
    10096      case 1 :
    101          UnregisterLxDll(hModule);
     97         if(dllHandle) {
     98                UnregisterLxDll(dllHandle);
     99         }
    102100         break;
    103101
  • trunk/src/opengl/glut/initterm.cpp

    r2996 r3993  
    1 /* $Id: initterm.cpp,v 1.8 2000-03-04 19:10:16 jeroen Exp $ */
     1/* $Id: initterm.cpp,v 1.9 2000-08-11 10:56:23 sandervl Exp $ */
    22
    33/*
     
    4444 extern DWORD _Resource_PEResTab;
    4545}
     46static HMODULE dllHandle = 0;
    4647
    4748void CDECL Glut32Terminate(void);
     
    8889         _ctordtorInit();
    8990
    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 
    9891         CheckVersionFromHMOD(PE2LX_VERSION, hModule);/* PLF Wed  98-03-18 05:28:48*/
    9992
     93         dllHandle = RegisterLxDll(hModule, LibMain, (PVOID)&_Resource_PEResTab);
     94         if(dllHandle == 0)
     95                return 0UL;
     96
    10097         break;
    101 
    10298      case 1 :
    103          UnregisterLxDll(hModule);
     99         if(dllHandle) {
     100                UnregisterLxDll(dllHandle);
     101         }
    104102         break;
    105103
  • trunk/src/opengl/mesa/3dfx/initterm.cpp

    r2938 r3993  
    1 /* $Id: initterm.cpp,v 1.1 2000-02-29 00:46:18 sandervl Exp $ */
     1/* $Id: initterm.cpp,v 1.2 2000-08-11 10:56:23 sandervl Exp $ */
    22
    33/*
     
    4444 extern DWORD _Resource_PEResTab;
    4545}
     46static HMODULE dllHandle = 0;
    4647
    4748int cleangraphics(void);
     
    9293         CheckVersionFromHMOD(PE2LX_VERSION, hModule);/* PLF Wed  98-03-18 05:28:48*/
    9394
    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;
    10198
    10299         break;
    103100
    104101      case 1 :
    105          UnregisterLxDll(hModule);
     102         if(dllHandle) {
     103                UnregisterLxDll(dllHandle);
     104         }
    106105         break;
    107106
  • trunk/src/opengl/mesa/initterm.cpp

    r3598 r3993  
    1 /* $Id: initterm.cpp,v 1.4 2000-05-23 20:40:38 jeroen Exp $ */
     1/* $Id: initterm.cpp,v 1.5 2000-08-11 10:56:23 sandervl Exp $ */
    22
    33/*
     
    4444 extern DWORD _Resource_PEResTab;
    4545}
     46static HMODULE dllHandle = 0;
    4647
    4748#ifdef DIVE
     
    9798         CheckVersionFromHMOD(PE2LX_VERSION, hModule);/* PLF Wed  98-03-18 05:28:48*/
    9899
    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;
    106103
    107104#ifdef DIVE
     
    112109
    113110      case 1 :
    114          UnregisterLxDll(hModule);
     111         if(dllHandle) {
     112                UnregisterLxDll(dllHandle);
     113         }
    115114         break;
    116115
Note: See TracChangeset for help on using the changeset viewer.