mmsystem: Use PeekMessageW instead of UserYield.

This commit is contained in:
Alexandre Julliard 2009-11-12 21:53:02 +01:00
parent 9a43c410f9
commit 7c930a3771
2 changed files with 4 additions and 2 deletions

View file

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

View file

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