http://bugs.winehq.org/show_bug.cgi?id=28042
--- Comment #4 from Andrew Eikum aeikum@codeweavers.com 2011-08-22 15:10:25 CDT --- Looks like it's caused by the applications being buggy. With the Stalingrad demo, the call stack looks like:
0009:Call PE DLL (proc=0x110d309,module=0x1100000 L"sfx.dll",reason=PROCESS_ATTACH,res=(nil)) 0009:Call msvcrt._initterm(01112000,011120b4) ret=0110d2bc 0009:Call winmm.mixerGetNumDevs() ret=0113e1a0
however DLLs aren't supposed to call mixerGetNumDevs() from within DllMain. In fact, the application fails to launch on my Windows Vista VM, including in WinXP compatibility mode. It might be interesting to run it on actual hardware, but I'm not sure what we can do to work around this.