Ignore:
Timestamp:
Jul 28, 2001, 8:04:35 PM (24 years ago)
Author:
sandervl
Message:

updates

File:
1 edited

Legend:

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

    r6375 r6397  
    8989    APIRET rc;
    9090    ULONG  ulSysinfo, version[2];
     91    static BOOL fInit = FALSE;
    9192   
    9293    /*-------------------------------------------------------------------------*/
     
    9697    /*-------------------------------------------------------------------------*/
    9798
     99    if(fInit == TRUE && ulFlag == 0) {
     100        return 1; //already initialized
     101    }
     102    fInit = TRUE;
    98103    switch (ulFlag)
    99104    {
     
    229234    return ;
    230235}
     236//******************************************************************************
     237ULONG APIENTRY O32__DLL_InitTerm(ULONG handle, ULONG flag);
     238//******************************************************************************
     239ULONG APIENTRY InitializeKernel32()
     240{
     241    HMODULE hModule;
     242
     243    DosQueryModuleHandle("WGSS50", &hModule);
     244    O32__DLL_InitTerm(hModule, 0);
     245    DosQueryModuleHandle("KERNEL32", &hModule);
     246    return inittermKernel32(hModule, 0);
     247}
     248//******************************************************************************
     249//******************************************************************************
Note: See TracChangeset for help on using the changeset viewer.