Commit d1e2239f authored by Ulrich Weigand's avatar Ulrich Weigand Committed by Alexandre Julliard

Bugfix: Always release the Win16Lock in TASK_Reschedule.

parent e5811f0e
......@@ -780,6 +780,11 @@ BOOL TASK_Reschedule(void)
if (hTask == hCurrentTask)
{
/* Allow Win32 threads to thunk down even while a Win16 task is
in a tight PeekMessage() or Yield() loop ... */
SYSLEVEL_ReleaseWin16Lock();
SYSLEVEL_RestoreWin16Lock();
TRACE(task, "returning to the current task(%04x)\n", hTask );
return FALSE; /* Nothing to do */
}
......
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