Changeset 126 for trunk/src/kernel32/winexe.cpp
- Timestamp:
- Jun 20, 1999, 12:55:37 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/winexe.cpp
r120 r126 1 /* $Id: winexe.cpp,v 1. 6 1999-06-19 10:54:43sandervl Exp $ */1 /* $Id: winexe.cpp,v 1.7 1999-06-20 10:55:36 sandervl Exp $ */ 2 2 3 3 /* … … 21 21 #include <iostream.h> 22 22 #include <fstream.h> 23 #include "misc.h"24 #include "nameid.h"25 #include "win32type.h"23 #include <misc.h> 24 #include <nameid.h> 25 #include <win32type.h> 26 26 #include <winexe.h> 27 #include "wprocess.h"28 #include "pefile.h"27 #include <wprocess.h> 28 #include <pefile.h> 29 29 #include "cio.h" 30 30 31 31 #include "conwin.h" // Windows Header for console only 32 32 #include "console.h" 33 #include "handlemanager.h"34 35 33 36 34 Win32Exe *WinExe = NULL; … … 46 44 dprintf(("Win32Exe ctor: %s", szFileName)); 47 45 48 HMInitialize(); /* store standard handles within HandleManager */49 dprintf(("KERNEL32/WINEXE: HandleManager Initialized.\n"));50 46 if(fConsoleApp) { 51 47 dprintf(("Console application!\n")); … … 62 58 fConsoleApp(FALSE), cmdline(NULL), OS2InstanceHandle(-1) 63 59 { 64 HMInitialize(); /* store standard handles within HandleManager */65 dprintf(("KERNEL32/WINEXE: HandleManager Initialized.\n"));66 67 60 if(GET_CONSOLE(Win32TableId) == 1) {//console app 68 61 dprintf(("Console application!\n")); … … 86 79 ULONG Win32Exe::start() 87 80 { 81 ULONG rc; 82 88 83 if(getenv("WIN32_IOPL2")) { 89 84 io_init1(); … … 92 87 93 88 fExeStarted = TRUE; 94 return ((WIN32EXEENTRY)entryPoint)(); 89 SetWin32TIB(); 90 rc = ((WIN32EXEENTRY)entryPoint)(); 91 RestoreOS2TIB(); 92 return rc; 95 93 } 96 94 //******************************************************************************
Note:
See TracChangeset
for help on using the changeset viewer.