http://bugs.winehq.org/show_bug.cgi?id=14536
--- Comment #5 from Lei Zhang thestig@google.com 2008-07-18 18:09:19 --- Created an attachment (id=14909) --> (http://bugs.winehq.org/attachment.cgi?id=14909) proposed patch
Something like this should fix it. It's not 100% right, so I still need to work on it a bit before sending it to wine-patches.