http://bugs.winehq.org/show_bug.cgi?id=27850
--- Comment #7 from Henri Verbeet hverbeet@gmail.com 2013-12-05 10:12:26 CST --- Created attachment 46742 --> http://bugs.winehq.org/attachment.cgi?id=46742 patch
I think the attached patch should help. Still needs some tests to see if it's actually correct though.