http://bugs.winehq.org/show_bug.cgi?id=10239
--- Comment #7 from Mikolaj Zalewski mikolaj.zalewski@gmail.com 2008-01-31 13:56:31 --- Created an attachment (id=10551) --> (http://bugs.winehq.org/attachment.cgi?id=10551) patch
I've had some time to look into it and this patch seems to fix it. However I will have to test it a bit more.