Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

b5ms.zip: the documentation for getsockname.namelen is misleading

27 views
Skip to first unread message

kzelec...@e3tech.local

unread,
Apr 23, 2013, 11:01:31 AM4/23/13
to
Is: namelen [out] The size of the name buffer.
Should be: namelen [inout] The size of the name buffer.
The problem occurs when namelen points to an automatic variable without a
value and the code is compiled in debug mode; WSAGetLastError() == 0x271e
(invalid pointer).



0 new messages