http://bugs.winehq.org/show_bug.cgi?id=16585
--- Comment #11 from Igor Tarasov tarasov.igor@gmail.com 2009-01-27 06:47:34 --- Created an attachment (id=19020) --> (http://bugs.winehq.org/attachment.cgi?id=19020) patch
Okay, I've attempted to implement it, so here is the patch. It works well for me.