Bugfix: DirectedYield() only to 16-bit tasks in ReplyMessage().

This commit is contained in:
Ulrich Weigand 1999-03-09 17:38:26 +00:00 committed by Alexandre Julliard
parent 36d10c88cd
commit c08b9c5b90

View file

@ -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;