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
1 changed files with 1 additions and 1 deletions

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;