http://bugs.winehq.org/show_bug.cgi?id=20249
--- Comment #5 from Rico kgbricola@web.de 2009-10-10 10:43:34 --- Created an attachment (id=24011) --> (http://bugs.winehq.org/attachment.cgi?id=24011) hack to workaround the problem
Attached is a workaround for the problem. Could you give it a try?
Todo: Verify the return value and the last error with a test, for now it is just a wild guess.