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

This commit is contained in:
Alexandre Julliard 2008-02-28 19:56:48 +01:00
parent d2b6087999
commit edb91ce519
1 changed files with 1 additions and 0 deletions

View File

@ -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)) {