> - if (ret == 0 || ret > mb_cur_max || defaultCharacterUsed) {
> + if (ret <= 0 || ret > mb_cur_max || defaultCharacterUsed) {
> goto eilseq;
> }Does WideCharToMultiByte ever return negative values? Microsoft docs only mention zero as return value on error. _______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
