Changeset 130 for trunk/src/kernel32/wprocess.cpp
- Timestamp:
- Jun 20, 1999, 2:46:34 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/wprocess.cpp
r126 r130 1 /* $Id: wprocess.cpp,v 1.1 1 1999-06-20 10:55:36sandervl Exp $ */1 /* $Id: wprocess.cpp,v 1.12 1999-06-20 12:46:09 sandervl Exp $ */ 2 2 3 3 /* … … 37 37 USHORT ProcessTIBSel = 0; 38 38 DWORD *TIBFlatPtr = 0; 39 40 extern "C" ULONG QueryExceptionChain(); 39 41 40 42 //****************************************************************************** … … 104 106 } 105 107 dprintf(("InitializeTIB setup TEB with selector %x", tibsel)); 108 dprintf(("InitializeTIB: FS(%x):[0] = %x", GetFS(), QueryExceptionChain())); 106 109 return winteb; 107 110 #else … … 119 122 THDB *thdb; 120 123 121 dprintf(("DestroyTIB: FS = %x", GetFS())); 124 dprintf(("DestroyTIB: FS = %x", GetFS())); 125 dprintf(("DestroyTIB: FS:[0] = %x", QueryExceptionChain())); 122 126 123 127 winteb = (TEB *)TIBFlatPtr; … … 134 138 else dprintf(("Already destroyed TIB")); 135 139 140 dprintf(("DestroyTIB: FS(%x):[0] = %x", GetFS(), QueryExceptionChain())); 136 141 TIBFlatPtr = NULL; 137 142 return; … … 225 230 RegisterExe(Win32TableId, NameTableId, VersionResId, Pe2lxVersion, hinstance); 226 231 227 dprintf(("RegisterResourceUsage: FS = %x", GetFS()));232 dprintf(("RegisterResourceUsage: FS(%x):[0] = %x", GetFS(), QueryExceptionChain())); 228 233 } 229 234 //****************************************************************************** … … 315 320 { 316 321 dprintf(("KERNEL32: ExitProcess %d\n", exitcode)); 317 318 #ifdef WIN32_TIBSEL 319 //Restore original OS/2 TIB selector 320 DestroyTIB(); 321 #endif 322 dprintf(("KERNEL32: ExitProcess FS = %x\n", GetFS())); 322 323 323 324 //avoid crashes since win32 & OS/2 exception handler aren't identical … … 327 328 iConsoleWaitClose(); 328 329 329 try { 330 Win32DllExitList(-1); 331 } 332 catch(...) { 333 dprintf(("dll exitlist exception\n")); 334 } 335 336 #ifndef WIN32_TIBSEL 330 Win32DllExitList(0); 331 332 //Restore original OS/2 TIB selector 333 DestroyTIB(); 337 334 SetExceptionChain((ULONG)-1); 338 #endif 335 339 336 O32_ExitProcess(exitcode); 340 337 }
Note:
See TracChangeset
for help on using the changeset viewer.