https://bugs.winehq.org/show_bug.cgi?id=57637
--- Comment #3 from Radko Krkoš krkos@mail.muni.cz --- Created attachment 78029 --> https://bugs.winehq.org/attachment.cgi?id=78029 An experimental patch fixing the crash
The crash is indeed caused by DirectPlay Lobby code, if you short-circuit DirectPlayLobbyCreate (by returning an error early), the crash does not happen.
The attached patch fixes the crash for me, but there are three problems: 1. It goes against what Alistair Leslie-Hughes tried to do in 490d5f0fcf8556548743ad65a2a9951c2f503809 and following patches. 2. It does not really make sense (IDirectPlayLobby_QueryInterface with ANSI object just calls the Unicode version). 3. It breaks some tests.
It does however indicate that the problem is somewhere in the lifetime management of the dplobby structure.