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/testapp/exceptions/GuardPages/main.cpp

    r21982 r21999  
    149149    ///////////////////////////////////////////////////
    150150
     151#if 1
     152
    151153    printf ("\nTEST 1 (STACK)\n");
    152154
     
    154156    DWORD dwYellowZoneSize = sSysInfo.dwPageSize * 3;
    155157
    156 #if 1
    157158    if (VirtualAlloc ((LPVOID) dwStackBase, dwYellowZoneSize,
    158159                      MEM_COMMIT, PAGE_READWRITE))
     
    186187        }
    187188    }
    188 #endif
    189189
    190190    PrintMemLayout (&dwStackTop);
    191191
     192#endif
     193
    192194    ///////////////////////////////////////////////////
     195
     196#if 1
    193197
    194198    printf ("\nTEST 2 (PAGE_GUARD)\n");
     
    220224    VirtualFree (pNonStack, 0, MEM_RELEASE);
    221225
     226#endif
     227
    222228    return 0;
    223229}
     
    226232{
    227233#ifdef __WIN32OS2__
    228     EnableSEH();
     234#ifdef ODIN_FORCE_WIN32_TIB
     235    ForceWin32TIB();
     236#endif
    229237#endif
    230238
Note: See TracChangeset for help on using the changeset viewer.