summaryrefslogtreecommitdiff
path: root/thread_win32.c
diff options
context:
space:
mode:
authorSamuel Williams <samuel.williams@oriontransfer.co.nz>2019-06-06 15:02:35 +1200
committerSamuel Williams <samuel.williams@oriontransfer.co.nz>2019-06-19 20:39:10 +1200
commitdee0cfbb4757ca954853de48814367c51f255933 (patch)
treea19676214af99e0775a7ab6b65836c8500f5174a /thread_win32.c
parent561c9bcf3a1ce33e51c2c03e88aa3103d42f5af9 (diff)
Specify that size is non-committed memory.
Diffstat (limited to 'thread_win32.c')
-rw-r--r--thread_win32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/thread_win32.c b/thread_win32.c
index e38c9d9..e128625 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