Ignore:
Timestamp:
Mar 9, 2000, 8:03:23 PM (25 years ago)
Author:
sandervl
Message:

Dll dependency changes

File:
1 edited

Legend:

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

    r2984 r3059  
    1 /* $Id: initterm.cpp,v 1.36 2000-03-03 11:15:58 sandervl Exp $ */
     1/* $Id: initterm.cpp,v 1.37 2000-03-09 19:03:18 sandervl Exp $ */
    22
    33/*
     
    4747#include "hmdevio.h"
    4848#include <windllbase.h>
     49#include "winexepe2lx.h"
    4950#include "initsystem.h"
    5051#include <exitlist.h>
     
    128129                return 0UL;
    129130
     131            //SvL: Kernel32 is a special case; pe.exe loads it, so increase
     132            //     the reference count here
     133            Win32DllBase *module = Win32DllBase::findModule(hModule);
     134            if(module && !fPe2Lx) {
     135                module->AddRef();
     136                module->DisableUnload();
     137            }
     138
    130139            /*******************************************************************/
    131140            /* A DosExitList routine must be used to clean up if runtime calls */
Note: See TracChangeset for help on using the changeset viewer.