http://bugs.winehq.org/show_bug.cgi?id=28464
--- Comment #4 from Jörg Höhle hoehle@users.sourceforge.net 2011-09-23 03:46:49 CDT --- Created attachment 36518 --> http://bugs.winehq.org/attachment.cgi?id=36518 Set WHDR_DONE right before DriverCallback
This patch separates the to_play queue from the done queue.
Note that threading might allow thread #2 to issue DriverCallback before thread #1... The notification order would be messed up! There's no solution to this short of having a unique thread send out all asynchronous notifications (cf. bug #3930, it looks like native actually does that).