http://bugs.winehq.org/show_bug.cgi?id=36153
--- Comment #11 from Erich Hoover erich.e.hoover@gmail.com --- (In reply to Piotr Caban from comment #10)
... The way comparator is called is not preserved between different versions of msvcrXX.dll (I've checked only msvcrt.dll and msvcr100.dll). ... Adding something like this in qsort_s fixes Borderlands 2 for me: ...
Fixes the problem for me as well. Is this something where AJ would allow a "#define MSVCR100"/"#ifdef MSVCR100" so that msvcr100 has this behavior without breaking other versions?