Commit dd64dd55 authored by Alexandre Julliard's avatar Alexandre Julliard

user32: Reimplement UserYield using PeekMessageW.

parent 18ddbc1c
......@@ -3365,28 +3365,6 @@ DWORD WINAPI WaitForInputIdle( HANDLE hProcess, DWORD dwTimeOut )
/***********************************************************************
* UserYield (USER.332)
*/
void WINAPI UserYield16(void)
{
DWORD count;
/* Handle sent messages */
process_sent_messages();
/* Yield */
ReleaseThunkLock(&count);
if (count)
{
RestoreThunkLock(count);
/* Handle sent messages again */
process_sent_messages();
}
}
/***********************************************************************
* RegisterWindowMessageA (USER32.@)
* RegisterWindowMessage (USER.118)
*/
......
......@@ -506,6 +506,16 @@ BOOL16 WINAPI SetMessageQueue16( INT16 size )
/***********************************************************************
* UserYield (USER.332)
*/
void WINAPI UserYield16(void)
{
MSG msg;
PeekMessageW( &msg, 0, 0, 0, PM_REMOVE | PM_QS_SENDMESSAGE );
}
/***********************************************************************
* GetQueueStatus (USER.334)
*/
DWORD WINAPI GetQueueStatus16( UINT16 flags )
......
......@@ -784,7 +784,6 @@
@ stdcall GetDriverModuleHandle16(long)
@ stdcall OpenDriver16(str str long)
@ stdcall SendDriverMessage16(long long long long)
@ stdcall UserYield16()
################################################################
# Wine dll separation hacks, these will go away, don't use them
......
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