Changeset 3993 for trunk/src/opengl/mesa


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/mesa
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • 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.