[KERNEL32]: Enable guard pages for Win32 threads too, not just native threads (replicated the changes I made to RtlpCreateStack).

svn path=/trunk/; revision=59982
This commit is contained in:
Alex Ionescu 2013-09-04 04:47:02 +00:00
parent e371890058
commit f5f5edbd4a

View file

@ -403,9 +403,6 @@ BaseCreateStack(HANDLE hProcess,
StackCommit = ROUND_UP(StackCommit, PageSize);
StackReserve = ROUND_UP(StackReserve, AllocationGranularity);
/* ROS Hack until we support guard page stack expansion */
StackCommit = StackReserve;
/* Reserve memory for the stack */
Stack = 0;
Status = NtAllocateVirtualMemory(hProcess,