https://bugs.winehq.org/show_bug.cgi?id=41037
--- Comment #2 from audiger@live.fr --- Your patch fix the problem. Maybe one day I'll do by my own this sort of commits.
Battle.net is still not launching, but I don't think it comes from this issue now. I'll have a look at it from where it comes.