Ignore:
Timestamp:
Sep 16, 1999, 1:26:11 AM (26 years ago)
Author:
sandervl
Message:

Initterm creates LX image object during initialization

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lz32/initterm.cpp

    r542 r951  
    1 /* $Id: initterm.cpp,v 1.5 1999-08-18 08:58:22 sandervl Exp $ */
     1/* $Id: initterm.cpp,v 1.6 1999-09-15 23:26:07 sandervl Exp $ */
    22
    33/*
     
    3232#include <string.h>
    3333#include <odin.h>
     34#include <win32type.h>
     35#include <odinlx.h>
    3436#include <misc.h>       /*PLF Wed  98-03-18 23:18:15*/
     37
     38extern "C" {
     39void CDECL _ctordtorInit( void );
     40void CDECL _ctordtorTerm( void );
     41}
    3542
    3643/*-------------------------------------------------------------------*/
     
    5158/* calling this function.                                                   */
    5259/****************************************************************************/
    53 unsigned long SYSTEM _DLL_InitTerm(unsigned long hModule,
    54                                    unsigned long ulFlag)
     60unsigned long SYSTEM _DLL_InitTerm(unsigned long hModule, unsigned long
     61                                   ulFlag)
    5562{
     63   size_t i;
    5664   APIRET rc;
    5765
     
    6472   switch (ulFlag) {
    6573      case 0 :
     74         _ctordtorInit();
    6675
    6776         CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed  98-03-18 05:28:48*/
     
    7281         /*******************************************************************/
    7382
     83         if(RegisterLxDll(hModule, 0, 0) == FALSE)
     84                return 0UL;
     85
    7486         rc = DosExitList(0x0000F000|EXLST_ADD, cleanup);
    7587         if(rc)
     
    7890         break;
    7991      case 1 :
     92         UnregisterLxDll(hModule);
    8093         break;
    8194      default  :
     
    92105static void APIENTRY cleanup(ULONG ulReason)
    93106{
     107   _ctordtorTerm();
    94108   DosExitList(EXLST_EXIT, cleanup);
    95109   return ;
Note: See TracChangeset for help on using the changeset viewer.