http://bugs.winehq.org/show_bug.cgi?id=14627
--- Comment #26 from Rafał Mużyło galtgendo@o2.pl 2011-03-08 12:05:54 CST --- OK, it seems the answer lies in the last parameter of WideCharToMultiByte, but there's a question: should regedit not use that parameter and export invalid values or should it set it to non-NULL and refuse to export if it gets set to TRUE ?
It's not a rhetorical question, I'm both unsure what Windows does in such case and whether wine should mirror that behavior.