diff --git a/windows/message.c b/windows/message.c index 1d4ba1d49c0..b91b4e3d94b 100644 --- a/windows/message.c +++ b/windows/message.c @@ -821,7 +821,7 @@ BOOL WINAPI ReplyMessage( LRESULT result ) LeaveCriticalSection(&senderQ->cSection); /* switch directly to sending task (16 bit thread only) */ - if (THREAD_IsWin16( THREAD_Current() )) + if ( THREAD_IsWin16( THREAD_Current() ) && THREAD_IsWin16( senderQ->thdb ) ) DirectedYield16( senderQ->thdb->teb.htask16 ); ret = TRUE;