winmm: winmm_test.exe fix for CALLBACK_THREAD race

Stéphan Kochen stephan at kochen.nl
Fri Apr 27 03:52:37 CDT 2007


[I sent this to just wine-devel before, sorry!]

"wine winmm_test.exe wave" reliably locks up for me after calling
waveOutOpen() with the CALLBACK_THREAD flag, waiting for a WOM_OPEN
message to arrive. Which never happens because I believe the thread
doesn't have a message queue.

This patch implements the solution mentioned in the "remarks" section of
the MSDN page on PostThreadMessage:
http://msdn2.microsoft.com/en-us/library/ms644946.aspx

Regards,
-- Stéphan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: winmm_test_fix.patch
Type: text/x-patch
Size: 390 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20070427/4ea21420/winmm_test_fix.bin


More information about the wine-patches mailing list