https://bugs.winehq.org/show_bug.cgi?id=42578
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Fixed by SHA1| |b60cd6830848431e359196bb1d8 | |01e93d0952fdf Resolution|--- |FIXED
--- Comment #5 from Bruno Jesus 00cpxxx@gmail.com --- It was a bug in Wine, not your code. It is now fixed in Wine 2.3.
http://source.winehq.org/git/wine.git/?a=commit;h=b60cd6830848431e359196bb1d...
To make it work in 2.0 you have to parse the port on your own and submit the address without the [ ] to the function.