https://bugs.winehq.org/show_bug.cgi?id=40350
--- Comment #3 from Henri Verbeet hverbeet@gmail.com --- (In reply to Dmitry from comment #2)
So it is just luck that it works on windows?
Quite possibly. You'd have to look at the code that gets generated for the caller to be sure, but my guess would be that it ends up overwriting some value that isn't really used.