Changeset 6210 for trunk/src


Ignore:
Timestamp:
Jul 8, 2001, 4:48:39 AM (24 years ago)
Author:
bird
Message:

Added environment fix for win32k.

File:
1 edited

Legend:

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

    r5451 r6210  
    5353#include <initdll.h>
    5454#include <codepage.h>
     55#include <process.h>
    5556
    5657#define DBG_LOCALLOG    DBG_initterm
    5758#include "dbglocal.h"
    5859
     60PVOID   SYSTEM _O32_GetEnvironmentStrings( VOID );
    5961
    6062/*-------------------------------------------------------------------*/
     
    107109        case 0 :
    108110        {
    109             libWin32kInit();
    110 
    111111            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            }
    112127
    113128            loadNr = globLoadNr++;
     
    116131            char *endofpath = strrchr(kernel32Path, '\\');
    117132            *(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"));
    119135            ctordtorInit();
    120136
     
    159175                ulMaxAddr = ulSysinfo * (1024*1024);
    160176                OSLibInitWSeBFileIO();
    161                 if(PROFILE_GetOdinIniInt(ODINSYSTEM_SECTION, HIGHMEM_KEY, 1) == 0) {
     177            if (PROFILE_GetOdinIniInt(ODINSYSTEM_SECTION, HIGHMEM_KEY, 1) == 0) {
    162178                    dprintf(("WARNING: OS/2 kernel supports high memory, but support is DISABLED because of HIGHMEM odin.ini key"));
    163179                    flAllocMem = 0;
     
    172188            //(std handles can be used in win32 dll initialization routines
    173189            HMInitialize();             /* store standard handles within HandleManager */
    174             InitDirectories();          //Must be done before InitializeTIB (which loads NTDLL -> USER32)
     190            InitDirectories();      //Must be done before InitializeTIB (which loads NTDLL -> USER32)
    175191            InitializeTIB(TRUE);        //Must be done after HMInitialize!
    176192            RegisterDevices();
Note: See TracChangeset for help on using the changeset viewer.