Changeset 21999 for trunk/testapp/exceptions/GuardPages/main.cpp
- Timestamp:
- Apr 18, 2012, 10:46:37 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/testapp/exceptions/GuardPages/main.cpp
r21982 r21999 149 149 /////////////////////////////////////////////////// 150 150 151 #if 1 152 151 153 printf ("\nTEST 1 (STACK)\n"); 152 154 … … 154 156 DWORD dwYellowZoneSize = sSysInfo.dwPageSize * 3; 155 157 156 #if 1157 158 if (VirtualAlloc ((LPVOID) dwStackBase, dwYellowZoneSize, 158 159 MEM_COMMIT, PAGE_READWRITE)) … … 186 187 } 187 188 } 188 #endif189 189 190 190 PrintMemLayout (&dwStackTop); 191 191 192 #endif 193 192 194 /////////////////////////////////////////////////// 195 196 #if 1 193 197 194 198 printf ("\nTEST 2 (PAGE_GUARD)\n"); … … 220 224 VirtualFree (pNonStack, 0, MEM_RELEASE); 221 225 226 #endif 227 222 228 return 0; 223 229 } … … 226 232 { 227 233 #ifdef __WIN32OS2__ 228 EnableSEH(); 234 #ifdef ODIN_FORCE_WIN32_TIB 235 ForceWin32TIB(); 236 #endif 229 237 #endif 230 238
Note:
See TracChangeset
for help on using the changeset viewer.