mirror of
https://github.com/reactos/wine.git
synced 2025-01-24 21:10:50 +00:00
mmsystem: Use PeekMessageW instead of UserYield.
This commit is contained in:
parent
9a43c410f9
commit
7c930a3771
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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 );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user