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/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.