kernel32: WideCharToMultiByte: test negative dest len (take 3)

Dan Kegel dank at
Wed Mar 26 08:50:14 CDT 2008

While investigating a crash in gs-auftrag in bug 9039, noticed
WideCharToMultiByte wasn't quite conformant for negative destlen.

As Alexandre pointed out, and as I would have seen if I had
bothered to run the wine test suite, actually fixing this bug would
require fixing a bunch of callers (e.g. by changing -1 to INT_MAX).
So for now here's the test alone without the fix, properly todo_wine'd.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mbcs3.patch
Type: text/x-patch
Size: 2776 bytes
Desc: not available
Url : 

More information about the wine-patches mailing list