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/crtdll/initterm.cpp

    r2650 r3993  
    1 /* $Id: initterm.cpp,v 1.3 2000-02-05 01:55:11 sandervl Exp $ */
     1/* $Id: initterm.cpp,v 1.4 2000-08-11 10:56:13 sandervl Exp $ */
    22
    33/*
     
    4747BOOL WIN32API CRTDLL_Init(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved);
    4848
     49static HMODULE dllHandle = 0;
     50
    4951//******************************************************************************
    5052//******************************************************************************
     
    9193         CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed  98-03-18 05:28:48*/
    9294
    93          if(RegisterLxDll(hModule, LibMain, (PVOID)&_Resource_PEResTab) == FALSE)
     95         dllHandle = RegisterLxDll(hModule, LibMain, (PVOID)&_Resource_PEResTab);
     96         if(dllHandle == 0)
    9497                return 0UL;
    9598
    9699         break;
    97100      case 1 :
    98          UnregisterLxDll(hModule);
     101         if(dllHandle) {
     102                UnregisterLxDll(dllHandle);
     103         }
    99104         break;
    100105
Note: See TracChangeset for help on using the changeset viewer.