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
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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).