Commit aa7a0f51 authored by Alexandre Julliard's avatar Alexandre Julliard

krnl386: Don't release the Win16 lock when exiting a task.

parent 7a7b8288
......@@ -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 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment