Changeset 8898 for trunk/src/kernel32/initkernel32.cpp
- Timestamp:
- Jul 21, 2002, 11:17:28 AM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/initkernel32.cpp
r8880 r8898 1 /* $Id: initkernel32.cpp,v 1.2 1 2002-07-15 14:40:16sandervl Exp $1 /* $Id: initkernel32.cpp,v 1.22 2002-07-21 09:17:28 sandervl Exp $ 2 2 * 3 3 * KERNEL32 DLL entry point … … 134 134 OpenPrivateLogFiles(); 135 135 136 if (InitializeSharedHeap() == FALSE)137 return 0UL;138 139 if (InitializeCodeHeap() == FALSE)140 return 0UL;141 142 136 //SvL: Do it here instead of during the exe object creation 143 137 //(std handles can be used in win32 dll initialization routines 144 138 HMInitialize(); /* store standard handles within HandleManager */ 145 146 InitializeMemMaps();147 148 PROFILE_LoadOdinIni();149 dllHandle = RegisterLxDll(hModule, 0, (PVOID)&kernel32_PEResTab);150 if (dllHandle == 0)151 return 0UL;152 153 //SvL: Kernel32 is a special case; pe.exe loads it, so increase154 // the reference count here155 Win32DllBase *module = Win32DllBase::findModule(dllHandle);156 if (module)157 {158 module->AddRef();159 module->DisableUnload();160 }161 139 162 140 /* knut: check for high memory support */ … … 174 152 else 175 153 flAllocMem = 0; // no high memory support 154 155 if (InitializeSharedHeap() == FALSE) 156 return 0UL; 157 158 if (InitializeCodeHeap() == FALSE) 159 return 0UL; 160 161 InitializeMemMaps(); 162 163 PROFILE_LoadOdinIni(); 164 dllHandle = RegisterLxDll(hModule, 0, (PVOID)&kernel32_PEResTab); 165 if (dllHandle == 0) 166 return 0UL; 167 168 //SvL: Kernel32 is a special case; pe.exe loads it, so increase 169 // the reference count here 170 Win32DllBase *module = Win32DllBase::findModule(dllHandle); 171 if (module) 172 { 173 module->AddRef(); 174 module->DisableUnload(); 175 } 176 176 177 177 OSLibDosSetInitialMaxFileHandles(ODIN_DEFAULT_MAX_FILEHANDLES);
Note:
See TracChangeset
for help on using the changeset viewer.