kernel32: WideCharToMultiByte: return error on negative dest len (take 2)

Alexandre Julliard julliard at
Wed Mar 26 05:21:04 CDT 2008

"Dan Kegel" <dank at> writes:

> While investigating a crash in gs-auftrag in bug 9039, noticed
> WideCharToMultiByte wasn't quite conformant for negative destlen.
> Fixed, with tests.  Passes for me in Wine and Win XP.

This would require reviewing all uses of WideCharToMultiByte in Wine,
many places get this wrong. Unless you have an app that requires this
fix I'd suggest to leave the test as todo_wine for now.

Alexandre Julliard
julliard at

More information about the wine-devel mailing list