Changeset 9484 for trunk/src


Ignore:
Timestamp:
Dec 11, 2002, 3:50:01 PM (23 years ago)
Author:
sandervl
Message:

Added custom build function to disable loading of LX dlls

File:
1 edited

Legend:

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

    r9455 r9484  
    1 /* $Id: wprocess.cpp,v 1.161 2002-12-03 11:39:40 sandervl Exp $ */
     1/* $Id: wprocess.cpp,v 1.162 2002-12-11 14:50:01 sandervl Exp $ */
    22
    33/*
     
    735735}
    736736
     737//******************************************************************************
     738//Custom build function to disable loading of LX dlls
     739static BOOL fDisableLXDllLoading = FALSE;
     740//******************************************************************************
     741void WIN32API ODIN_DisableLXDllLoading()
     742{
     743    fDisableLXDllLoading = TRUE;
     744}
    737745
    738746/**
     
    931939
    932940    /** @sketch
    933      *  IF (!fPeLoader || fPE == failure) THEN
     941     *  IF (fDisableLXDllLoading && (!fPeLoader || fPE == failure)) THEN
    934942     *      Try load the executable using LoadLibrary
    935943     *      IF successfully loaded THEN
     
    944952     */
    945953    //only call OS/2 if LX binary or win32k process
    946     if (!fPeLoader || fPE != ERROR_SUCCESS)
     954    if (!fDisableLXDllLoading && (!fPeLoader || fPE != ERROR_SUCCESS))
    947955    {
    948956        hDll = OSLibDosLoadModule(szModname);
     
    20102018        //Force Open32 to use DosStartSession (DosExecPgm won't do)
    20112019        dwCreationFlags |= CREATE_NEW_PROCESS_GROUP;
     2020
     2021        dprintf(("KERNEL32: CreateProcess starting [%s],[%s]",
     2022                 szNELoader,
     2023                 cmdline));
    20122024        rc = O32_CreateProcess(szNELoader, (LPCSTR)cmdline, lpProcessAttributes,
    20132025                               lpThreadAttributes, bInheritHandles, dwCreationFlags,
Note: See TracChangeset for help on using the changeset viewer.