From dee0cfbb4757ca954853de48814367c51f255933 Mon Sep 17 00:00:00 2001 From: Samuel Williams Date: Thu, 6 Jun 2019 15:02:35 +1200 Subject: Specify that size is non-committed memory. --- thread_win32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'thread_win32.c') diff --git a/thread_win32.c b/thread_win32.c index e38c9d9018..e1286253a5 100644 --- a/thread_win32.c +++ b/thread_win32.c @@ -256,7 +256,7 @@ typedef LPTHREAD_START_ROUTINE w32_thread_start_func; static HANDLE w32_create_thread(DWORD stack_size, w32_thread_start_func func, void *val) { - return start_thread(0, stack_size, func, val, CREATE_SUSPENDED, 0); + return start_thread(0, stack_size, func, val, CREATE_SUSPENDED | STACK_SIZE_PARAM_IS_A_RESERVATION, 0); } int -- cgit v1.2.3