Module: wine Branch: master Commit: edb91ce51971c9c138b8754da631bc399f8b5729 URL: http://source.winehq.org/git/wine.git/?a=commit;h=edb91ce51971c9c138b8754da6...
Author: Alexandre Julliard julliard@winehq.org Date: Thu Feb 28 19:56:48 2008 +0100
winmm/tests: Make sure the callback thread has a message queue.
---
dlls/winmm/tests/wave.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/dlls/winmm/tests/wave.c b/dlls/winmm/tests/wave.c index 93e406e..60f0622 100644 --- a/dlls/winmm/tests/wave.c +++ b/dlls/winmm/tests/wave.c @@ -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)) {