krnl386: Don't release the Win16 lock when exiting a task.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54402
This commit is contained in:
parent
7a7b82880a
commit
aa7a0f5198
2 changed files with 1 additions and 11 deletions
|
@ -96,9 +96,6 @@ static void WINAPI DOSVM_DefaultHandler( CONTEXT *context )
|
|||
*/
|
||||
void DOSVM_Exit( WORD retval )
|
||||
{
|
||||
DWORD count;
|
||||
|
||||
ReleaseThunkLock( &count );
|
||||
ExitThread( retval );
|
||||
}
|
||||
|
||||
|
|
|
@ -549,15 +549,8 @@ void TASK_ExitTask(void)
|
|||
TDB *pTask;
|
||||
DWORD lockCount;
|
||||
|
||||
/* Enter the Win16Lock to protect global data structures */
|
||||
_EnterWin16Lock();
|
||||
|
||||
pTask = TASK_GetCurrent();
|
||||
if ( !pTask )
|
||||
{
|
||||
_LeaveWin16Lock();
|
||||
return;
|
||||
}
|
||||
if (!pTask) return;
|
||||
|
||||
TRACE("Killing task %04x\n", pTask->hSelf );
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue