Changeset 6301 for trunk/src


Ignore:
Timestamp:
Jul 10, 2001, 10:18:12 PM (24 years ago)
Author:
bird
Message:

Better WinExe == NULL check. Set fDll flag in Win32Pe2LxImage.

File:
1 edited

Legend:

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

    r6211 r6301  
    1 /* $Id: windllpe2lx.cpp,v 1.10 2001-07-08 02:49:47 bird Exp $ */
     1/* $Id: windllpe2lx.cpp,v 1.11 2001-07-10 20:18:12 bird Exp $ */
    22
    33/*
     
    3939#include "dbglocal.h"
    4040
     41/*******************************************************************************
     42*   Global Variables                                                           *
     43*******************************************************************************/
     44extern BOOL fPeLoader;
    4145
    4246/**
     
    111115        iConsoleDevicesRegister();
    112116
    113         /* Before we attach the DLL we must make sure that we have a valid executable */
    114         if (!WinExe)
     117        /*
     118         * Before we attach the DLL we must make sure that we have a valid executable
     119         * Should perhaps find a good way of checking for native LX binaries...
     120         */
     121        if (!WinExe && !fPeLoader)
     122        {
     123            dprintf(("RegisterPe2LxDll: tries to do an early exe init.\n"));
    115124            Win32Pe2LxExe::earlyInit();
     125        }
    116126
    117127        /* Add reference and attach dll to process. */
     
    143153{
    144154    dprintf(("Win32Pe2LxDll::Win32Pe2LxDll %s", szModule));
     155    fDll = TRUE;
    145156}
    146157
Note: See TracChangeset for help on using the changeset viewer.