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