Changeset 10606 for trunk/src/kernel32/initkernel32.cpp
- Timestamp:
- May 24, 2004, 10:56:07 AM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/initkernel32.cpp
r10528 r10606 1 /* $Id: initkernel32.cpp,v 1.2 7 2004-03-16 13:34:23sandervl Exp $1 /* $Id: initkernel32.cpp,v 1.28 2004-05-24 08:56:06 sandervl Exp $ 2 2 * 3 3 * KERNEL32 DLL entry point … … 60 60 #include <stats.h> 61 61 #include <heapshared.h> 62 #include <heapstring.h> 62 63 63 64 #define DBG_LOCALLOG DBG_initterm … … 70 71 extern DWORD kernel32_PEResTab; 71 72 } 73 74 extern PFN pfnImSetMsgQueueProperty; 72 75 73 76 ULONG flAllocMem = 0; /* flag to optimize DosAllocMem to use all the memory on SMP machines */ … … 78 81 BOOL fInit = FALSE; 79 82 BOOL fWin32k = FALSE; 83 HMODULE imHandle = 0; 84 char szModName[ 256 ] = ""; 80 85 81 86 /****************************************************************************/ … … 150 155 //(std handles can be used in win32 dll initialization routines 151 156 HMInitialize(); /* store standard handles within HandleManager */ 152 157 153 158 // VP: Shared heap should be initialized before call to PROFILE_* 154 159 // because they use a critical section which in turn uses smalloc … … 215 220 /* Setup codepage info */ 216 221 CODEPAGE_Init(); 222 223 if( IsDBCSEnv() && DosLoadModule( szModName, sizeof( szModName ), "OS2IM.DLL", &imHandle ) == 0 ) 224 DosQueryProcAddr( imHandle, 140, NULL, &pfnImSetMsgQueueProperty ); 217 225 218 226 InitSystemInfo(ulSysinfo); … … 256 264 dprintf(("kernel32 exit %d\n", ulReason)); 257 265 266 if( IsDBCSEnv() && imHandle ) 267 DosFreeModule( imHandle ); 268 258 269 //Flush and delete all open memory mapped files 259 270 Win32MemMap::deleteAll();
Note:
See TracChangeset
for help on using the changeset viewer.