Alexandre Julliard : kernelbase: Don't round thread stack guaranteed size when it is zero.
Alexandre Julliard
julliard at winehq.org
Wed Sep 18 16:11:08 CDT 2019
Module: wine
Branch: master
Commit: b1bb4f84e244d141f7f17cdb6497ce645fd56015
URL: https://source.winehq.org/git/wine.git/?a=commit;h=b1bb4f84e244d141f7f17cdb6497ce645fd56015
Author: Alexandre Julliard <julliard at winehq.org>
Date: Wed Sep 18 17:52:07 2019 +0200
kernelbase: Don't round thread stack guaranteed size when it is zero.
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/kernelbase/thread.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/kernelbase/thread.c b/dlls/kernelbase/thread.c
index e16062016a..30e9a2e09b 100644
--- a/dlls/kernelbase/thread.c
+++ b/dlls/kernelbase/thread.c
@@ -505,7 +505,7 @@ BOOL WINAPI DECLSPEC_HOTPATCH SetThreadStackGuarantee( ULONG *size )
ULONG new_size = (*size + 4095) & ~4095;
/* at least 2 pages on 64-bit */
- if (sizeof(void *) > sizeof(int)) new_size = max( new_size, 8192 );
+ if (sizeof(void *) > sizeof(int) && new_size) new_size = max( new_size, 8192 );
*size = prev_size;
if (new_size >= (char *)NtCurrentTeb()->Tib.StackBase - (char *)NtCurrentTeb()->DeallocationStack)
More information about the wine-cvs
mailing list