Changeset 9546 for trunk/src/kernel32/virtual.cpp
- Timestamp:
- Dec 27, 2002, 4:25:40 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/virtual.cpp
r8877 r9546 1 /* $Id: virtual.cpp,v 1.4 8 2002-07-15 14:28:52sandervl Exp $ */1 /* $Id: virtual.cpp,v 1.49 2002-12-27 15:25:40 sandervl Exp $ */ 2 2 3 3 /* … … 470 470 { 471 471 // check if app wants to decommit stack pages -> don't allow that! 472 // (VAC runtime uses last stack page to store some internal 473 // data; if freed pe/pec will crash during exit) 474 472 475 TEB *teb = GetThreadTEB(); 473 476 if(teb) { 474 if(lpvAddress >= teb->stack_low && lpvAddress < teb->stack_top) { 477 DWORD stacktop = (DWORD)teb->stack_top; 478 DWORD stackbottom = (DWORD)teb->stack_low; 479 480 stackbottom = stackbottom & ~0xFFFF; //round down to 64kb boundary 481 stacktop = stacktop & ~0xFFF; 482 483 if(lpvAddress >= (PVOID)stackbottom && lpvAddress < (PVOID)stacktop) { 475 484 //pretend we did was was asked 476 485 dprintf(("WARNING: app tried to decommit stack pages; pretend success"));
Note:
See TracChangeset
for help on using the changeset viewer.