Alexandre Julliard : mmsystem: Use PeekMessageW instead of UserYield.
Module: wine Branch: master Commit: 7c930a37714460a6cf04d9e57a8d060c2ea0252b URL: http://source.winehq.org/git/wine.git/?a=commit;h=7c930a37714460a6cf04d9e57a... Author: Alexandre Julliard <julliard(a)winehq.org> Date: Thu Nov 12 21:53:02 2009 +0100 mmsystem: Use PeekMessageW instead of UserYield. --- dlls/mmsystem.dll16/mci16.c | 3 ++- dlls/mmsystem.dll16/mmsystem.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/dlls/mmsystem.dll16/mci16.c b/dlls/mmsystem.dll16/mci16.c index 75d7202..f09923a 100644 --- a/dlls/mmsystem.dll16/mci16.c +++ b/dlls/mmsystem.dll16/mci16.c @@ -482,7 +482,8 @@ static UINT MCI_Yield1632(DWORD pfn16, MCIDEVICEID id, DWORD yield_data) if (!pfn16) { - UserYield16(); + MSG msg; + PeekMessageW( &msg, 0, 0, 0, PM_REMOVE | PM_QS_SENDMESSAGE ); return 0; } diff --git a/dlls/mmsystem.dll16/mmsystem.c b/dlls/mmsystem.dll16/mmsystem.c index 94bb85f..5f193e7 100644 --- a/dlls/mmsystem.dll16/mmsystem.c +++ b/dlls/mmsystem.dll16/mmsystem.c @@ -2059,7 +2059,8 @@ LRESULT WINAPI mmThreadCreate16(FARPROC16 fpThreadAddr, LPHANDLE16 lpHndl, DWORD WARN("Couldn't resume thread\n"); while (lpMMThd->dwStatus != 0x10) { /* test also HIWORD of dwStatus */ - UserYield16(); + MSG msg; + PeekMessageW( &msg, 0, 0, 0, PM_REMOVE | PM_QS_SENDMESSAGE ); } } }
participants (1)
-
Alexandre Julliard