DosCreateThread should reserve some stack for 2ine's use.
Fixes crash in FTP.EXE's background thread.
This commit is contained in:
1 parent
b6c47ee91d
commit
33870fc221
1 file changed
+2
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user