http://bugs.winehq.org/show_bug.cgi?id=10477
--- Comment #17 from Henri Verbeet hverbeet@gmail.com 2010-09-03 08:49:27 CDT --- Created an attachment (id=30529) --> (http://bugs.winehq.org/attachment.cgi?id=30529) patch
This should help. Needs tests obviously, but makes sense to me.