Commit 18ddbc1c authored by Alexandre Julliard's avatar Alexandre Julliard

kernel32: Use PeekMessageW instead of UserYield.

parent 7c930a37
......@@ -819,10 +819,12 @@ void WINAPI Yield16(void)
HMODULE mod = GetModuleHandleA( "user32.dll" );
if (mod)
{
FARPROC proc = GetProcAddress( mod, "UserYield16" );
if (proc)
BOOL (WINAPI *pPeekMessageW)( MSG *msg, HWND hwnd, UINT first, UINT last, UINT flags );
pPeekMessageW = (void *)GetProcAddress( mod, "PeekMessageW" );
if (pPeekMessageW)
{
proc();
MSG msg;
pPeekMessageW( &msg, 0, 0, 0, PM_REMOVE | PM_QS_SENDMESSAGE );
return;
}
}
......
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