Fix problem where you need mouse activity to unlock some 16 bits
thread with multi-threaded apps.
diff --git a/loader/task.c b/loader/task.c
index 3bb95ad..2d65a29 100644
--- a/loader/task.c
+++ b/loader/task.c
@@ -500,7 +500,8 @@
if ( THREAD_IsWin16( THREAD_Current() ) )
OldYield();
else
- FIXME(task, "Don't know how to start 16-bit task from 32-bit thread. Move the mouse!\n");
+ /* wake-up the scheduler waiting in EVENT_WaitNetEvent */
+ EVENT_WakeUp();
}
@@ -944,13 +945,13 @@
if (!hTask) hTask = GetCurrentTask();
if (!(pTask = (TDB *)GlobalLock16( hTask ))) return;
+ pTask->nEvents++;
+
if ( !THREAD_IsWin16( THREAD_Current() ) )
{
- WARN(task, "called for Win32 thread (%04x)!\n", THREAD_Current()->teb_sel);
- /* return; */
+ /* wake-up the scheduler waiting in EVENT_WaitNetEvent */
+ EVENT_WakeUp();
}
-
- pTask->nEvents++;
}