http://bugs.winehq.org/show_bug.cgi?id=15670
--- Comment #12 from Louis Lenders xerox_xerox2000@yahoo.co.uk 2010-04-04 11:16:47 --- Created an attachment (id=27202) --> (http://bugs.winehq.org/attachment.cgi?id=27202) patch
The attached patch fixes the bug. Maybe it needs a bit of improvement for error-handling?