http://bugs.winehq.org/show_bug.cgi?id=32951
--- Comment #8 from Henri Verbeet hverbeet@gmail.com 2013-02-14 14:34:28 CST --- (In reply to comment #6)
Created attachment 43565 [details] log to show, that another thread still likes to draw ...
Attached is a log with backtrace. One thread frees the library and the other draws ... that's the case why it is also kind of a random crash.
How / why are we getting unloaded? The other thread being active seems to imply it's not a normal unload due to process exit, and a single FreeLibrary() shouldn't be enough to cause ddraw to get unloaded. Is there any chance the other thread should have already been stopped instead?
(In reply to comment #7)
Wine does not restore original screen resolution on exit when run with patch from comment 4. Is that expected?
Somewhat, the patch skips the cleanup code that takes care of that. It also suggests the application doesn't cleanup itself either though.