Ignore:
Timestamp:
Apr 15, 2011, 9:37:36 PM (14 years ago)
Author:
dmik
Message:

kernel32: To complete the Win32 exception chain unwind support, make sure it is unwound when the thread terminates itself with ExitThread/ExitProcess etc. before removing its exception handlers from stack.

File:
1 edited

Legend:

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

    r21619 r21626  
    550550    dprintf(("KERNEL32:  ExitProcess %d (time %x)", exitcode, GetCurrentTime()));
    551551    dprintf(("KERNEL32:  ExitProcess FS = %x\n", GetFS()));
     552
     553    // make sure the Win32 exception stack (if there is still any) is unwound
     554    // before we destroy internal structures including the Win32 TIB
     555    RtlUnwind(NULL, 0, 0, 0);
    552556
    553557    fExitProcess = TRUE;
Note: See TracChangeset for help on using the changeset viewer.