Ignore:
Timestamp:
Feb 14, 2001, 12:41:04 PM (25 years ago)
Author:
sandervl
Message:

initterm call fixes

File:
1 edited

Legend:

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

    r3993 r5130  
    1 /* $Id: initterm.cpp,v 1.3 2000-08-11 10:56:27 sandervl Exp $ */
    2 
    31/*
    42 * DLL entry point
     
    3634#include <odinlx.h>
    3735#include <misc.h>       /*PLF Wed  98-03-18 23:18:15*/
     36#include <initdll.h>
    3837#include "wing32impl.h"
    3938
    4039extern "C" {
    41 void CDECL _ctordtorInit( void );
    42 void CDECL _ctordtorTerm( void );
    43 
    4440 //Win32 resource table (produced by wrc)
    4541 extern DWORD _Resource_PEResTab;
     
    5450   {
    5551   case DLL_PROCESS_ATTACH:
     52        if(!InitWing32())
     53            return FALSE;
     54
    5655        return TRUE;
    5756
     
    6160
    6261   case DLL_PROCESS_DETACH:
    63         _ctordtorTerm();
     62        __ctordtorTerm();
    6463        return TRUE;
    6564   }
     
    9089      case 0 :
    9190      {
    92         _ctordtorInit();
     91         __ctordtorInit();
    9392
    94         CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed  98-03-18 05:28:48*/
    95 
    96         if(!InitWing32())
    97           return 0UL;
     93         CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed  98-03-18 05:28:48*/
    9894
    9995         dllHandle = RegisterLxDll(hModule, LibMain, (PVOID)&_Resource_PEResTab);
Note: See TracChangeset for help on using the changeset viewer.