Ignore:
Timestamp:
May 24, 2004, 10:56:07 AM (21 years ago)
Author:
sandervl
Message:

KOM: Updates

File:
1 edited

Legend:

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

    r10528 r10606  
    1 /* $Id: initkernel32.cpp,v 1.27 2004-03-16 13:34:23 sandervl Exp $
     1/* $Id: initkernel32.cpp,v 1.28 2004-05-24 08:56:06 sandervl Exp $
    22 *
    33 * KERNEL32 DLL entry point
     
    6060#include <stats.h>
    6161#include <heapshared.h>
     62#include <heapstring.h>
    6263
    6364#define DBG_LOCALLOG    DBG_initterm
     
    7071 extern DWORD kernel32_PEResTab;
    7172}
     73
     74extern PFN pfnImSetMsgQueueProperty;
    7275
    7376       ULONG   flAllocMem = 0;    /* flag to optimize DosAllocMem to use all the memory on SMP machines */
     
    7881       BOOL    fInit     = FALSE;
    7982       BOOL    fWin32k   = FALSE;
     83       HMODULE imHandle = 0;
     84       char    szModName[ 256 ] = "";
    8085
    8186/****************************************************************************/
     
    150155            //(std handles can be used in win32 dll initialization routines
    151156            HMInitialize();             /* store standard handles within HandleManager */
    152            
     157
    153158            // VP: Shared heap should be initialized before call to PROFILE_*
    154159            // because they use a critical section which in turn uses smalloc
     
    215220            /* Setup codepage info */
    216221            CODEPAGE_Init();
     222
     223            if( IsDBCSEnv() && DosLoadModule( szModName, sizeof( szModName ), "OS2IM.DLL", &imHandle ) == 0 )
     224                DosQueryProcAddr( imHandle, 140, NULL, &pfnImSetMsgQueueProperty );
    217225
    218226            InitSystemInfo(ulSysinfo);
     
    256264    dprintf(("kernel32 exit %d\n", ulReason));
    257265
     266    if( IsDBCSEnv() && imHandle )
     267        DosFreeModule( imHandle );
     268
    258269    //Flush and delete all open memory mapped files
    259270    Win32MemMap::deleteAll();
Note: See TracChangeset for help on using the changeset viewer.