https://bugs.winehq.org/show_bug.cgi?id=41271
--- Comment #20 from charles.gorand.dev@gmail.com --- I have moved my Fallout installation to Steam Linux with Proton. I'm not able to test anymore.
I reviewed your patch and it looks valid and usefull anyway.
My previous test patch was to put a delay after CreateThread() which solve also the issue.
The way you implement it, is better :
- DirectSoundDevice_Initialize() * Init stuff * Create Thread * Wait thread is running. * return from DirectSoundDevice_Initialize()
- DirectSoundDevice_Release() * Check if thread running * Wait for thread termination * Deinitialize stuff.
I suggest you submit your patch in wine.