Ignore:
Timestamp:
Apr 18, 2012, 10:46:37 PM (13 years ago)
Author:
dmik
Message:

kernel32: Make SEH work in OS/2 context.

See #82 for details.

File:
1 edited

Legend:

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

    r21916 r21999  
    7979BOOL    fSwitchTIBSel = TRUE;           // TRUE  -> switch TIB selectors
    8080                                        // FALSE -> don't
    81 BOOL    fSEHEnabled = FALSE;            // TRUE  -> SEH support enabled
     81BOOL    fForceWin32TIB = FALSE;         // TRUE  -> force TIB switch
    8282                                        // FALSE -> not enabled
    8383BOOL    fExitProcess = FALSE;
     
    113113//******************************************************************************
    114114//******************************************************************************
    115 VOID WIN32API EnableSEH()
    116 {
    117     if(!fSEHEnabled) {
     115VOID WIN32API ForceWin32TIB()
     116{
     117    if(!fForceWin32TIB) {
    118118        ODIN_SetTIBSwitch(TRUE);
    119         fSEHEnabled = TRUE;
     119        fForceWin32TIB = TRUE;
    120120    }
    121121    return;
     
    510510{
    511511    dprintf(("ODIN_SetTIBSwitch %d", fSwitchTIB));
    512     if (!fSEHEnabled) {
     512    if (!fForceWin32TIB) {
    513513        fSwitchTIBSel = fSwitchTIB;
    514514        if(fSwitchTIBSel) {
     
    517517        else RestoreOS2TIB();
    518518    } else {
    519         dprintf(("ODIN_SetTIBSwitch: ignored due to fSEHEnabled = TRUE"));
     519        dprintf(("ODIN_SetTIBSwitch: ignored due to fForceWin32TIB = TRUE"));
    520520    }
    521521}
Note: See TracChangeset for help on using the changeset viewer.