Ignore:
Timestamp:
Jun 20, 1999, 2:46:34 PM (26 years ago)
Author:
sandervl
Message:

Activated Win32 TIB code and fixes some other things (see ChangeLog)

File:
1 edited

Legend:

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

    r126 r130  
    1 /* $Id: wprocess.cpp,v 1.11 1999-06-20 10:55:36 sandervl Exp $ */
     1/* $Id: wprocess.cpp,v 1.12 1999-06-20 12:46:09 sandervl Exp $ */
    22
    33/*
     
    3737USHORT    ProcessTIBSel = 0;
    3838DWORD    *TIBFlatPtr    = 0;
     39
     40extern "C" ULONG QueryExceptionChain();
    3941
    4042//******************************************************************************
     
    104106   }
    105107   dprintf(("InitializeTIB setup TEB with selector %x", tibsel));
     108   dprintf(("InitializeTIB: FS(%x):[0] = %x", GetFS(), QueryExceptionChain()));
    106109   return winteb;
    107110#else
     
    119122 THDB  *thdb;
    120123
    121    dprintf(("DestroyTIB: FS = %x", GetFS()));
     124   dprintf(("DestroyTIB: FS     = %x", GetFS()));
     125   dprintf(("DestroyTIB: FS:[0] = %x", QueryExceptionChain()));
    122126
    123127   winteb = (TEB *)TIBFlatPtr;
     
    134138   else dprintf(("Already destroyed TIB"));
    135139
     140   dprintf(("DestroyTIB: FS(%x):[0] = %x", GetFS(), QueryExceptionChain()));
    136141   TIBFlatPtr = NULL;
    137142   return;
     
    225230  RegisterExe(Win32TableId, NameTableId, VersionResId, Pe2lxVersion, hinstance);
    226231
    227   dprintf(("RegisterResourceUsage: FS = %x", GetFS()));
     232  dprintf(("RegisterResourceUsage: FS(%x):[0] = %x", GetFS(), QueryExceptionChain()));
    228233}
    229234//******************************************************************************
     
    315320{
    316321  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()));
    322323
    323324  //avoid crashes since win32 & OS/2 exception handler aren't identical
     
    327328    iConsoleWaitClose();
    328329
    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();
    337334  SetExceptionChain((ULONG)-1);
    338 #endif
     335
    339336  O32_ExitProcess(exitcode);
    340337}
Note: See TracChangeset for help on using the changeset viewer.