Ignore:
Timestamp:
Jun 18, 2009, 6:27:45 PM (16 years ago)
Author:
ydario
Message:

Minor updates, backout imm changes.

File:
1 edited

Legend:

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

    r21302 r21308  
    6060#include <stats.h>
    6161#include <heapshared.h>
     62#include <heapstring.h>
    6263#include <_ras.h>
    6364
     
    7172 extern DWORD kernel32_PEResTab;
    7273}
     74
     75extern PFN pfnImSetMsgQueueProperty;
    7376
    7477       ULONG   flAllocMem = 0;    /* flag to optimize DosAllocMem to use all the memory on SMP machines */
     
    7982       BOOL    fInit     = FALSE;
    8083       BOOL    fWin32k   = FALSE;
     84       HMODULE imHandle = 0;
     85       char    szModName[ 256 ] = "";
    8186
    8287/****************************************************************************/
     
    224229            CODEPAGE_Init();
    225230
     231            if( IsDBCSEnv() && DosLoadModule( szModName, sizeof( szModName ), "OS2IM.DLL", &imHandle ) == 0 )
     232                DosQueryProcAddr( imHandle, 140, NULL, &pfnImSetMsgQueueProperty );
     233
    226234            InitSystemInfo(ulSysinfo);
    227235            //Set up environment as found in NT
     
    272280    dprintf(("kernel32 exit %d\n", ulReason));
    273281
     282    if( IsDBCSEnv() && imHandle )
     283        DosFreeModule( imHandle );
     284
    274285    //Flush and delete all open memory mapped files
    275286    Win32MemMap::deleteAll();
Note: See TracChangeset for help on using the changeset viewer.