https://bugs.winehq.org/show_bug.cgi?id=41091
--- Comment #1 from Józef Kucia joseph.kucia@gmail.com --- (In reply to Béla Gyebrószki from comment #0)
From what I see the crash didn't occur before
commit 403459fd914788f180ad9eea6459274ac62f8c2f Author: Józef Kucia jkucia@codeweavers.com Date: Tue Mar 29 12:14:53 2016 +0200
wined3d: Add hull shader type.
Are you sure this is a correct commit id? FWIW, the game seems to work for me after this commit but it doesn't work in the current master.
I'm afraid there's nothing to fix in wined3d. The game releases IDirectDraw object and then releases IDirectDrawSurface. AFAIK this is illegal and crashes on Windows as well. In Wine this leads to accessing freed device memory. You can confirm this by running the game with WINEDEBUG=warn+heap (it should always crash, even with good commits).
It's possible that the game won't try to release IDirectDrawSurface after releasing IDirectDraw when it's able to play videos. If this is the case, then this bug could be fixed by implementing missing bits in quartz and/or amstream.