https://bugs.winehq.org/show_bug.cgi?id=30062
--- Comment #9 from Béla Gyebrószki gyebro69@gmail.com --- (In reply to Henri Verbeet from comment #8)
Created attachment 56719 [details] patch
Attached patch is perhaps more reasonable, although it would need some more testing to see how it's actually supposed to work. It's probably too risky for 2.0 regardless.
The patch fixes the problem.