I'm not sure if I did it right. I started to bisect between wine-1.4-rc1 (good) and wine-1.4-rc2 (bad). Since the first bisect showed the error, I moved towards rc1 until the first commit ("Release 1.4-rc2", it's a release, so are there any changes that could have introduced the error?). I then tried again between rc1 and 1.3.37 and everything worked.