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

    r2650 r3993  
    1 /* $Id: initterm.cpp,v 1.3 2000-02-05 02:00:05 sandervl Exp $ */
     1/* $Id: initterm.cpp,v 1.4 2000-08-11 10:56:15 sandervl Exp $ */
    22
    33/*
     
    4444 extern DWORD _Resource_PEResTab;
    4545}
     46static HMODULE dllHandle = 0;
    4647
    4748BOOL WINAPI IMAGEHLP_LibMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved);
     
    9192         CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed  98-03-18 05:28:48*/
    9293
    93          /*******************************************************************/
    94          /* A DosExitList routine must be used to clean up if runtime calls */
    95          /* are required and the runtime is dynamically linked.             */
    96          /*******************************************************************/
    97 
    98          if(RegisterLxDll(hModule, LibMain, (PVOID)&_Resource_PEResTab) == FALSE)
     94         dllHandle = RegisterLxDll(hModule, LibMain, (PVOID)&_Resource_PEResTab);
     95         if(dllHandle == 0)
    9996                return 0UL;
    10097
    10198         break;
    10299      case 1 :
    103          UnregisterLxDll(hModule);
     100         if(dllHandle) {
     101                UnregisterLxDll(dllHandle);
     102         }
    104103         break;
    105104
Note: See TracChangeset for help on using the changeset viewer.