Remove GetCurrentThreadStackLimits call (for Win7 support)

This commit is contained in:
elasota
2020-02-08 03:19:48 -05:00
parent 57d0678090
commit a58b73aeb4

View File

@@ -32,10 +32,14 @@ IGpFiber *GpFiberStarter::StartFiber(ThreadFunc_t threadFunc, void *context, IGp
{ {
ULONG_PTR lowLimit; ULONG_PTR lowLimit;
ULONG_PTR highLimit; ULONG_PTR highLimit;
#if 0
GetCurrentThreadStackLimits(&lowLimit, &highLimit); GetCurrentThreadStackLimits(&lowLimit, &highLimit);
ULONG_PTR stackSize = highLimit - lowLimit; ULONG_PTR stackSize = highLimit - lowLimit;
#else
ULONG_PTR stackSize = 1024 * 1024;
#endif
GpFiberStarter_Win32::FiberStartState startState; GpFiberStarter_Win32::FiberStartState startState;
startState.m_context = context; startState.m_context = context;