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

    r2644 r3993  
    1 /* $Id: dllentry.cpp,v 1.1 2000-02-05 01:49:48 sandervl Exp $ */
     1/* $Id: dllentry.cpp,v 1.2 2000-08-11 10:56:14 sandervl Exp $ */
    22
    33/*
     
    4444 extern DWORD _Resource_PEResTab;
    4545}
     46
     47static HMODULE dllHandle = 0;
     48
    4649//******************************************************************************
    4750//******************************************************************************
     
    8487
    8588   switch (ulFlag) {
    86       case 0 :
     89      case 0:
    8790         _ctordtorInit();
    8891
    8992         CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed  98-03-18 05:28:48*/
    9093
    91          if(RegisterLxDll(hModule, LibMain, (PVOID)&_Resource_PEResTab) == FALSE)
     94         dllHandle = RegisterLxDll(hModule, LibMain, (PVOID)&_Resource_PEResTab);
     95         if(dllHandle == 0)
    9296                return 0UL;
    9397
    9498         break;
    95       case 1 :
    96          UnregisterLxDll(hModule);
     99      case 1:
     100         if(dllHandle) {
     101                UnregisterLxDll(dllHandle);
     102         }
    97103         break;
    98       default  :
     104      default:
    99105         return 0UL;
    100106   }
Note: See TracChangeset for help on using the changeset viewer.