Changeset 1284 for trunk/src/kernel32/winexepeldr.cpp
- Timestamp:
- Oct 14, 1999, 11:58:10 AM (26 years ago)
- 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:50sandervl Exp $ */1 /* $Id: winexepeldr.cpp,v 1.3 1999-10-14 09:57:34 sandervl Exp $ */ 2 2 3 3 /* … … 72 72 } 73 73 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 74 82 WinExe->start(); 75 83 … … 85 93 Win32PeLdrImage(szFileName) 86 94 { 87 fConsoleApp = (oh.Subsystem == IMAGE_SUBSYSTEM_WINDOWS_CUI);88 89 95 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 }98 96 } 99 97 //****************************************************************************** … … 104 102 //****************************************************************************** 105 103 //****************************************************************************** 104 BOOL 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.