http://bugs.winehq.org/show_bug.cgi?id=23217
--- Comment #1 from Nikolay Sivov bunglehead@gmail.com 2010-06-19 09:34:19 --- Created an attachment (id=28960) --> (http://bugs.winehq.org/attachment.cgi?id=28960) patch
A simple patch that should work.