http://bugs.winehq.org/show_bug.cgi?id=36153
--- Comment #12 from Piotr Caban piotr.caban@gmail.com --- (In reply to Erich Hoover from comment #11)
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?
I think that better solution is to rewrite qsort so it doesn't allocate additional memory. While doing it one can implement fallback to simpler sort for small partitions. This way the function will be much more similar to native implementation.