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

Updates for fake system dll headers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.