- Timestamp:
- Jul 8, 2001, 4:48:39 AM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/initterm.cpp
r5451 r6210 53 53 #include <initdll.h> 54 54 #include <codepage.h> 55 #include <process.h> 55 56 56 57 #define DBG_LOCALLOG DBG_initterm 57 58 #include "dbglocal.h" 58 59 60 PVOID SYSTEM _O32_GetEnvironmentStrings( VOID ); 59 61 60 62 /*-------------------------------------------------------------------*/ … … 107 109 case 0 : 108 110 { 109 libWin32kInit();110 111 111 ParseLogStatus(); 112 113 /* 114 * Init the win32k library. 115 * We will also need to tell win32k where the Odin32 environment is 116 * located. Currently that is within Open32. I'm quite sure that it's 117 * not relocated during run, so we're pretty well off. 118 */ 119 if (!libWin32kInit()) 120 { 121 rc = libWin32kSetEnvironment((PSZ)_O32_GetEnvironmentStrings(), 0, 0); 122 if (rc) 123 { 124 dprintf(("KERNEL32: initterm: libWin32kSetEnvironment failed with rc=%d\n", rc)); 125 } 126 } 112 127 113 128 loadNr = globLoadNr++; … … 116 131 char *endofpath = strrchr(kernel32Path, '\\'); 117 132 *(endofpath+1) = 0; 118 dprintf(("kernel32 init %s %s (%x)", __DATE__, __TIME__, DLLENTRYPOINT_NAME)); 133 dprintf(("kernel32 init %s %s (%x) Win32k - %s", __DATE__, __TIME__, DLLENTRYPOINT_NAME, 134 libWin32kInstalled() ? "Installed" : "Not Installed")); 119 135 ctordtorInit(); 120 136 … … 159 175 ulMaxAddr = ulSysinfo * (1024*1024); 160 176 OSLibInitWSeBFileIO(); 161 if(PROFILE_GetOdinIniInt(ODINSYSTEM_SECTION, HIGHMEM_KEY, 1) == 0) {177 if (PROFILE_GetOdinIniInt(ODINSYSTEM_SECTION, HIGHMEM_KEY, 1) == 0) { 162 178 dprintf(("WARNING: OS/2 kernel supports high memory, but support is DISABLED because of HIGHMEM odin.ini key")); 163 179 flAllocMem = 0; … … 172 188 //(std handles can be used in win32 dll initialization routines 173 189 HMInitialize(); /* store standard handles within HandleManager */ 174 InitDirectories(); 190 InitDirectories(); //Must be done before InitializeTIB (which loads NTDLL -> USER32) 175 191 InitializeTIB(TRUE); //Must be done after HMInitialize! 176 192 RegisterDevices();
Note:
See TracChangeset
for help on using the changeset viewer.