mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-02 12:03:45 +00:00
Fixed race between Win16 parent and child for first rescheduling
of child process. This fixes WinExec returning too early.
This commit is contained in:
parent
18ad24a798
commit
fa5647ab33
1 changed files with 5 additions and 2 deletions
|
@ -228,8 +228,11 @@ void TASK_CallToStart(void)
|
||||||
SEGTABLEENTRY *pSegTable = NE_SEG_TABLE( pModule );
|
SEGTABLEENTRY *pSegTable = NE_SEG_TABLE( pModule );
|
||||||
CONTEXT86 context;
|
CONTEXT86 context;
|
||||||
|
|
||||||
/* Add task to 16-bit scheduler pool */
|
SYSLEVEL_EnterWin16Lock();
|
||||||
TASK_Reschedule();
|
|
||||||
|
/* Add task to 16-bit scheduler pool if necessary */
|
||||||
|
if ( hCurrentTask != GetCurrentTask() )
|
||||||
|
TASK_Reschedule();
|
||||||
|
|
||||||
/* Registers at initialization must be:
|
/* Registers at initialization must be:
|
||||||
* ax zero
|
* ax zero
|
||||||
|
|
Loading…
Reference in a new issue