http://bugs.winehq.org/show_bug.cgi?id=5114
--- Comment #5 from Lei Zhang thestig@google.com 2008-02-11 17:41:28 --- (In reply to comment #4)
Created an attachment (id=10710)
--> (http://bugs.winehq.org/attachment.cgi?id=10710) [details]
Patch to add requested functionality
You got the basic idea right, but the code needs some additional work, i.e. don't mix WCHARs and chars.