瀏覽代碼

--- Merging r33346 into '.':
U rtl/win/tthread.inc
--- Recording mergeinfo for merge of r33346 into '.':
U .

# revisions: 33346

git-svn-id: branches/fixes_3_0@33815 -

marco 9 年之前
父節點
當前提交
f194d71cef
共有 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)]);