Ignore:
Timestamp:
Oct 5, 1999, 12:25:02 AM (26 years ago)
Author:
phaller
Message:

Fix: DisableThreadLibraryCalls added

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/windllbase.cpp

    r956 r1134  
    1 /* $Id: windllbase.cpp,v 1.1 1999-09-15 23:39:07 sandervl Exp $ */
     1/* $Id: windllbase.cpp,v 1.2 1999-10-04 22:25:02 phaller Exp $ */
    22
    33/*
     
    3838//******************************************************************************
    3939//******************************************************************************
    40 Win32DllBase::Win32DllBase(HINSTANCE hinstance, WIN32DLLENTRY DllEntryPoint) 
     40Win32DllBase::Win32DllBase(HINSTANCE hinstance, WIN32DLLENTRY DllEntryPoint)
    4141                 : Win32ImageBase(hinstance),
    42                    referenced(0), fSkipEntryCalls(FALSE), 
     42                   referenced(0), fSkipEntryCalls(FALSE),
    4343                   fAttachedToProcess(FALSE), fUnloaded(FALSE)
    4444{
     
    6060  dprintf(("Win32DllBase::~Win32DllBase %s", szModule));
    6161
    62   if(errorState == NO_ERROR && !fUnloaded) 
     62  if(errorState == NO_ERROR && !fUnloaded)
    6363  {
    6464        detachProcess();
     
    8686//******************************************************************************
    8787ULONG Win32DllBase::Release()
    88 { 
     88{
    8989 ULONG ret = --referenced;
    9090
     
    105105  if(fAttachedToProcess)
    106106        return TRUE;
    107  
     107
    108108  fAttachedToProcess = TRUE;
    109109
     
    341341//******************************************************************************
    342342//******************************************************************************
     343void Win32DllBase::setThreadLibraryCalls(BOOL fEnable)
     344{
     345  // if fEnable == true, do call the ATTACH_THREAD, DETACH_THREAD functions
     346  // if fEnable == false, do not call the ATTACH_THREAD, DETACH_THREAD functions
     347  fSkipEntryCalls = !fEnable;
     348}
     349
     350//******************************************************************************
     351//******************************************************************************
    343352Win32DllBase *Win32DllBase::head = NULL;
Note: See TracChangeset for help on using the changeset viewer.