Переглянути джерело

* Use STACK_SIZE_PARAM_IS_A_RESERVATION for stack sizes, should fix bug ID #17755

git-svn-id: trunk@33346 -
michael 9 роки тому
батько
коміт
65c880a7f6
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      rtl/win/tthread.inc

+ 1 - 1
rtl/win/tthread.inc

@@ -7,7 +7,7 @@ begin
   FInitialSuspended := CreateSuspended;
   { Always start in suspended state, will be resumed in AfterConstruction if necessary
     See Mantis #16884 }
-  FHandle := BeginThread(nil, StackSize, @ThreadProc, pointer(self), CREATE_SUSPENDED,
+  FHandle := BeginThread(nil, StackSize, @ThreadProc, pointer(self), CREATE_SUSPENDED OR STACK_SIZE_PARAM_IS_A_RESERVATION,
                          FThreadID);
   if FHandle = TThreadID(0) then
     raise EThread.CreateFmt(SThreadCreateError, [SysErrorMessage(getlasterror)]);