DosCreateThread should reserve some stack for 2ine's use.

Fixes crash in FTP.EXE's background thread.
This commit is contained in:
Ryan C. Gordon committed 2018-01-18 21:58:52 -05:00
1 parent b6c47ee91d
commit 33870fc221
1 file changed
+2
+2
View File
@@ -1428,6 +1428,8 @@ APIRET DosCreateThread(PTID ptid, PFNTHREAD pfn, ULONG param, ULONG flag, ULONG
if ((stacksize % 4096) != 0)
stacksize += 4096 - (cbStack % 4096);
stacksize += 4096; // leave a page for the TIB and host system libs that use more stack.
thread->stacklen = stacksize;
thread->fn = pfn;
thread->fnarg = param;