winmm/tests: Make sure the callback thread has a message queue.
This commit is contained in:
parent
d2b6087999
commit
edb91ce519
|
@ -535,6 +535,7 @@ static DWORD WINAPI callback_thread(LPVOID lpParameter)
|
|||
{
|
||||
MSG msg;
|
||||
|
||||
PeekMessageW( &msg, 0, 0, 0, PM_NOREMOVE ); /* make sure the thread has a message queue */
|
||||
SetEvent((HANDLE)lpParameter);
|
||||
|
||||
while (GetMessage(&msg, 0, 0, 0)) {
|
||||
|
|
Loading…
Reference in New Issue