ntdll: Commit new guard pages in virtual_handle_stack_fault.

Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Sebastian Lackner 2015-11-28 21:28:26 +01:00 committed by Alexandre Julliard
parent d71970f658
commit 7b66f9f6b4
1 changed files with 1 additions and 1 deletions

View File

@ -1550,7 +1550,7 @@ BOOL virtual_handle_stack_fault( void *addr )
if ((char *)page >= (char *)NtCurrentTeb()->DeallocationStack + 2*page_size)
{
vprot = view->prot[((char *)page - page_size - (char *)view->base) >> page_shift];
VIRTUAL_SetProt( view, (char *)page - page_size, page_size, vprot | VPROT_GUARD );
VIRTUAL_SetProt( view, (char *)page - page_size, page_size, vprot | VPROT_COMMITTED | VPROT_GUARD );
}
ret = TRUE;
}