Ignore:
Timestamp:
May 21, 2002, 4:42:40 PM (23 years ago)
Author:
sandervl
Message:

fix for lx dll unload fix

File:
1 edited

Legend:

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

    r8459 r8462  
    1 /* $Id: windlllx.cpp,v 1.24 2002-05-20 14:22:37 sandervl Exp $ */
     1/* $Id: windlllx.cpp,v 1.25 2002-05-21 14:42:40 sandervl Exp $ */
    22
    33/*
     
    145145       offset += modsize + 1;
    146146   }
     147#ifdef HACK_NEVER_UNLOAD_LX_DLLS
     148   //HACK ALERT!!
     149   //This makes sure the LX dll never gets unloaded.
     150   //Necessary since unloading doesn't work due to dependencies on dlls
     151   //with exitlist handlers.
     152   windll->AddRef();
     153#endif
    147154   return windll->getInstanceHandle();
    148155
     
    195202                                     Subsystem);
    196203  dprintf(("Fake PE header %x for dll %s", hinstance, getModuleName()));
    197 
    198   //HACK ALERT!!
    199   //This makes sure the LX dll never gets unloaded.
    200   //Necessary since unloading doesn't work due to dependencies on dlls
    201   //with exitlist handlers.
    202   referenced++;
    203204}
    204205//******************************************************************************
Note: See TracChangeset for help on using the changeset viewer.