mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-12-14 12:09:36 +00:00
Remove GetCurrentThreadStackLimits call (for Win7 support)
This commit is contained in:
@@ -33,9 +33,13 @@ 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;
|
||||||
|
|||||||
Reference in New Issue
Block a user