Ignore:
Timestamp:
Aug 6, 2001, 6:01:11 PM (24 years ago)
Author:
sandervl
Message:

CreateProcess & memory map fixes

File:
1 edited

Legend:

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

    r6417 r6468  
    6060BOOL  fVersionWarp3 = FALSE;
    6161
     62//Global DLL Data
     63#pragma data_seg(_GLOBALDATA)
     64int globLoadNr = 0;
     65#pragma data_seg()
     66
     67static BOOL fInit = FALSE;
     68
    6269/*-------------------------------------------------------------------*/
    6370/* A clean up routine registered with DosExitList must be used if    */
     
    8895    /*-------------------------------------------------------------------------*/
    8996
     97    if(fInit == TRUE && ulFlag == 0) {
     98        return 1; //already initialized
     99    }
     100    fInit = TRUE;
    90101    switch (ulFlag)
    91102    {
     
    147158    HMODULE hModule;
    148159
     160    if(!fInit) {
     161        loadNr = globLoadNr++;
     162    }
    149163    DosQueryModuleHandle("WGSS50", &hModule);
    150164    O32__DLL_InitTerm(hModule, 0);
    151165    DosQueryModuleHandle("KERNEL32", &hModule);
    152     return inittermKernel32(hModule, 0);
     166    return DLLENTRYPOINT_NAME(hModule, 0);
    153167}
    154168//******************************************************************************
Note: See TracChangeset for help on using the changeset viewer.