http://bugs.winehq.org/show_bug.cgi?id=28597
--- Comment #4 from Andrew Eikum aeikum@codeweavers.com 2011-10-26 10:56:33 CDT --- Created attachment 37127 --> http://bugs.winehq.org/attachment.cgi?id=37127 winecfg: Don't reload winmm for each audio test
Here's a patch to avoid the crash, and a proposal to fix it properly. From the patch:
I originally did this so that the user's changes to the Audio tab would take effect without having to relaunch winecfg. However, this causes crashes with WinMM's internal thread. We should be using MMDevAPI's IMMNotificationClient within WinMM to be informed when the device default changes. So this commit fixes the crashy behavior, but goes back to requiring a winecfg relaunch to have the settings take effect. After we implement IMMNotificationClient, we can do this correctly.