http://bugs.winehq.org/show_bug.cgi?id=19759
--- Comment #3 from Vitaliy Margolen vitaliy@kievinfo.com 2009-08-17 08:43:09 --- Something doesn't look right in your patch. SysAllocStringLen already zero-terminates it. This means something overwrites that last \0, which is the problem. The only thing that can do that in this code is MultiByteToWideChar because it gets the wrong size...