Commit edb91ce5 authored by Alexandre Julliard's avatar Alexandre Julliard

winmm/tests: Make sure the callback thread has a message queue.

parent d2b60879
......@@ -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)) {
......
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