Ignore:
Timestamp:
Aug 25, 1999, 1:32:24 AM (26 years ago)
Author:
phaller
Message:

Fix: ExitProcess: restore OS/2 TIB a little earlier, before console closes

File:
1 edited

Legend:

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

    r634 r669  
    1 /* $Id: wprocess.cpp,v 1.26 1999-08-22 22:11:23 sandervl Exp $ */
     1/* $Id: wprocess.cpp,v 1.27 1999-08-24 23:32:24 phaller Exp $ */
    22
    33/*
     
    331331  SetOS2ExceptionChain(-1);
    332332
     333  //Restore original OS/2 TIB selector
     334  DestroyTIB();
     335  SetExceptionChain((ULONG)-1);
     336
    333337  //avoid crashes since win32 & OS/2 exception handler aren't identical
    334338  //(terminate process generates two exceptions)
     
    338342
    339343  Win32DllExitList(0);
    340 
    341   //Restore original OS/2 TIB selector
    342   DestroyTIB();
    343   SetExceptionChain((ULONG)-1);
    344344
    345345  O32_ExitProcess(exitcode);
     
    605605}
    606606//******************************************************************************
    607 //NOTE: GetModuleHandleA does NOT support files with multiple dots (i.e. 
     607//NOTE: GetModuleHandleA does NOT support files with multiple dots (i.e.
    608608//      very.weird.exe)
    609609//******************************************************************************
     
    626626        else {
    627627                if(!strstr(szModule, ".")) {
    628                         //if there's no extension or trainling dot, we 
     628                        //if there's no extension or trainling dot, we
    629629                        //assume it's a dll (see Win32 SDK docs)
    630630                        fDllModule = TRUE;
Note: See TracChangeset for help on using the changeset viewer.