http://bugs.winehq.org/show_bug.cgi?id=19861
--- Comment #19 from Octavian Voicu octavian.voicu@gmail.com 2010-06-11 04:41:45 --- The bug title says "Wine should warn when ulimit -n needs raising", so the fix for this specific bug is to warn the user.
Problem is, as you can see from comments of users that encountered this bug, that they didn't know what caused it and how to work around it. As suggested by Dan, my patch detects the condition, and also suggest increasing nofile limit.