Changeset 617 for trunk/src/kernel32/winexe.cpp
- Timestamp:
- Aug 22, 1999, 1:11:11 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/winexe.cpp
r506 r617 1 /* $Id: winexe.cpp,v 1. 9 1999-08-16 13:54:32sandervl Exp $ */1 /* $Id: winexe.cpp,v 1.10 1999-08-22 11:11:11 sandervl Exp $ */ 2 2 3 3 /* … … 27 27 #include <wprocess.h> 28 28 #include <pefile.h> 29 #include "exceptions.h" 30 #include "exceptutil.h" 29 31 #include "cio.h" 30 32 … … 44 46 //****************************************************************************** 45 47 Win32Exe::Win32Exe(char *szFileName) : Win32Image(szFileName), fConsoleApp(FALSE), 46 cmdline(NULL) , OS2InstanceHandle(-1)48 cmdline(NULL) 47 49 { 48 50 fConsoleApp = (oh.Subsystem == IMAGE_SUBSYSTEM_WINDOWS_CUI); … … 63 65 Win32Exe::Win32Exe(HINSTANCE hinstance, int NameTableId, int Win32TableId) : 64 66 Win32Image(hinstance, NameTableId, Win32TableId), 65 fConsoleApp(FALSE), cmdline(NULL) , OS2InstanceHandle(-1)67 fConsoleApp(FALSE), cmdline(NULL) 66 68 { 67 69 if(GET_CONSOLE(Win32TableId) == 1) {//console app … … 86 88 ULONG Win32Exe::start() 87 89 { 90 WINEXCEPTION_FRAME exceptFrame; 88 91 ULONG rc; 89 92 … … 99 102 tlsAttachThread(); //setup TLS (main thread) 100 103 104 //Note: The Win32 exception structure references by FS:[0] is the same 105 // in OS/2 106 OS2SetExceptionHandler((void *)&exceptFrame); 107 101 108 SetWin32TIB(); 102 109 rc = ((WIN32EXEENTRY)entryPoint)(); 103 110 RestoreOS2TIB(); 111 112 OS2UnsetExceptionHandler((void *)&exceptFrame); 113 104 114 return rc; 105 115 }
Note:
See TracChangeset
for help on using the changeset viewer.