From a58b73aeb40b751afd6e46c0cc153e30e2d7c436 Mon Sep 17 00:00:00 2001 From: elasota Date: Sat, 8 Feb 2020 03:19:48 -0500 Subject: [PATCH] Remove GetCurrentThreadStackLimits call (for Win7 support) --- Aerofoil/GpFiberStarter_Win32.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Aerofoil/GpFiberStarter_Win32.cpp b/Aerofoil/GpFiberStarter_Win32.cpp index af05a87..2eed500 100644 --- a/Aerofoil/GpFiberStarter_Win32.cpp +++ b/Aerofoil/GpFiberStarter_Win32.cpp @@ -32,10 +32,14 @@ IGpFiber *GpFiberStarter::StartFiber(ThreadFunc_t threadFunc, void *context, IGp { ULONG_PTR lowLimit; ULONG_PTR highLimit; - + +#if 0 GetCurrentThreadStackLimits(&lowLimit, &highLimit); - ULONG_PTR stackSize = highLimit - lowLimit; + ULONG_PTR stackSize = highLimit - lowLimit; +#else + ULONG_PTR stackSize = 1024 * 1024; +#endif GpFiberStarter_Win32::FiberStartState startState; startState.m_context = context;