[1/2] ntdll: Commit new guard pages in virtual_handle_stack_fault. (resend)
Sebastian Lackner
sebastian at fds-team.de
Sat Nov 28 14:28:26 CST 2015
Signed-off-by: Sebastian Lackner <sebastian at fds-team.de>
---
Fixes cloning of git repos with the MSYS2 Windows version.
Might be related to https://bugs.winehq.org/show_bug.cgi?id=39634,
however based on the bug description its not really clear if its
the same issue.
dlls/ntdll/virtual.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/ntdll/virtual.c b/dlls/ntdll/virtual.c
index 4d4bc3b..d6319d82 100644
--- a/dlls/ntdll/virtual.c
+++ b/dlls/ntdll/virtual.c
@@ -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;
}
--
2.6.2
More information about the wine-patches
mailing list