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

    r3993 r5130  
    1 /* $Id: initterm.cpp,v 1.2 2000-08-11 10:56:24 sandervl Exp $ */
    2 
    31/*
    42 * DLL entry point
     
    3735#include <misc.h>       /*PLF Wed  98-03-18 23:18:15*/
    3836#include <twain.h>
     37#include <initdll.h>
    3938
    4039extern "C" {
    41 void CDECL _ctordtorInit( void );
    42 void CDECL _ctordtorTerm( void );
    43 
    4440//Win32 resource table (produced by wrc)
    4541extern DWORD _Resource_PEResTab;
     
    5248//******************************************************************************
    5349BOOL WINAPI LibMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID fImpLoad)
    54 {
     50{
     51 BOOL ret;
     52
    5553   switch (fdwReason)
    5654   {
     
    6361
    6462   case DLL_PROCESS_DETACH:
    65         _ctordtorTerm();
    66         return RICHED32_LibMain(hinstDLL, fdwReason, fImpLoad);
     63        ret = RICHED32_LibMain(hinstDLL, fdwReason, fImpLoad);
     64        __ctordtorTerm();
     65        return ret;
    6766   }
    6867   return FALSE;
     
    9190   switch (ulFlag) {
    9291      case 0 :
    93          _ctordtorInit();
     92         __ctordtorInit();
    9493
    9594         CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed  98-03-18 05:28:48*/
Note: See TracChangeset for help on using the changeset viewer.