Changeset 3993 for trunk/src/msacm32


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

    r2650 r3993  
    1 /* $Id: initterm.cpp,v 1.3 2000-02-05 02:02:34 sandervl Exp $ */
     1/* $Id: initterm.cpp,v 1.4 2000-08-11 10:56:21 sandervl Exp $ */
    22
    33/*
     
    4444 extern DWORD _Resource_PEResTab;
    4545}
     46static HMODULE dllHandle = 0;
    4647
    4748BOOL WINAPI MSACM32_LibMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved);
     
    9192         CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed  98-03-18 05:28:48*/
    9293
    93          if(RegisterLxDll(hModule, LibMain, (PVOID)&_Resource_PEResTab) == FALSE)
     94         dllHandle = RegisterLxDll(hModule, LibMain, (PVOID)&_Resource_PEResTab);
     95         if(dllHandle == 0)
    9496                return 0UL;
    9597
    9698         break;
    9799      case 1 :
    98          UnregisterLxDll(hModule);
     100         if(dllHandle) {
     101                UnregisterLxDll(dllHandle);
     102         }
    99103         break;
    100104
Note: See TracChangeset for help on using the changeset viewer.