Skip to content
Snippets Groups Projects
Commit fa5647ab authored by Ulrich Weigand's avatar Ulrich Weigand Committed by Alexandre Julliard
Browse files

Fixed race between Win16 parent and child for first rescheduling

of child process. This fixes WinExec returning too early.
parent 18ad24a7
No related branches found
No related tags found
No related merge requests found
......@@ -228,8 +228,11 @@ void TASK_CallToStart(void)
SEGTABLEENTRY *pSegTable = NE_SEG_TABLE( pModule );
CONTEXT86 context;
/* Add task to 16-bit scheduler pool */
TASK_Reschedule();
SYSLEVEL_EnterWin16Lock();
/* Add task to 16-bit scheduler pool if necessary */
if ( hCurrentTask != GetCurrentTask() )
TASK_Reschedule();
/* Registers at initialization must be:
* ax zero
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment