http://bugs.winehq.org/show_bug.cgi?id=12325
--- Comment #7 from Dmitry Timoshkov dmitry@codeweavers.com 2008-04-03 07:31:03 --- (In reply to comment #6)
Created an attachment (id=11821)
--> (http://bugs.winehq.org/attachment.cgi?id=11821) [details]
winebrowser CP_UNIXCP support for "mailto:" URL
Looks good, except there is no need check MultiByteToWideChar and WideCharToMultiByte return values since url guaranteed to contain at least "mailto:" and the APIs should never fail in that case.
Please send a corrected version of your patch to wine-patches, since it's an improvement.
Here is a quick patch for that bug. There is probably better way to FIX it.
As I said a better way is convert winebrowser to unicode, i.e. replace main() by wmain().