Ignore:
Timestamp:
Oct 14, 1999, 11:58:10 AM (26 years ago)
Author:
sandervl
Message:

Console fixes

File:
1 edited

Legend:

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

    r1097 r1284  
    1 /* $Id: winexepeldr.cpp,v 1.2 1999-10-01 10:15:50 sandervl Exp $ */
     1/* $Id: winexepeldr.cpp,v 1.3 1999-10-14 09:57:34 sandervl Exp $ */
    22
    33/*
     
    7272  }
    7373  OS2UnsetExceptionHandler(&exceptFrame);
     74  if(WinExe->isConsoleApp()) {
     75        dprintf(("Console application!\n"));
     76
     77        APIRET rc = iConsoleInit();                     /* initialize console subsystem */
     78        if (rc != NO_ERROR)                                  /* check for errors */
     79                dprintf(("KERNEL32:Win32Image:Init ConsoleInit failed with %u.\n", rc));
     80  }
     81
    7482  WinExe->start();
    7583
     
    8593                   Win32PeLdrImage(szFileName)
    8694{
    87   fConsoleApp = (oh.Subsystem == IMAGE_SUBSYSTEM_WINDOWS_CUI);
    88 
    8995  dprintf(("Win32PeLdrExe ctor: %s", szFileName));
    90 
    91   if(fConsoleApp) {
    92         dprintf(("Console application!\n"));
    93 
    94         APIRET rc = iConsoleInit();                     /* initialize console subsystem */
    95         if (rc != NO_ERROR)                                  /* check for errors */
    96                 dprintf(("KERNEL32:Win32Image:Init ConsoleInit failed with %u.\n", rc));
    97   }
    9896}
    9997//******************************************************************************
     
    104102//******************************************************************************
    105103//******************************************************************************
     104BOOL Win32PeLdrExe::init(ULONG reservedMem)
     105{
     106 BOOL rc;
     107
     108  rc = Win32PeLdrImage::init(reservedMem);
     109  fConsoleApp = (oh.Subsystem == IMAGE_SUBSYSTEM_WINDOWS_CUI);
     110  return rc;
     111}
     112//******************************************************************************
     113//******************************************************************************
Note: See TracChangeset for help on using the changeset viewer.