Re: ws2_32: Fix TRACE format in WS_getsockname
30 Sep
2012
30 Sep
'12
10 p.m.
Bruno Jesus <00cpxxx(a)gmail.com> wrote:
@@ -2444,7 +2444,7 @@ int WINAPI WS_getsockname(SOCKET s, struct WS_sockaddr *name, int *namelen) int fd; int res;
- TRACE("socket: %04lx, ptr %p, len %8x\n", s, name, *namelen); + TRACE("socket: %04lx, ptr %p, len %08x\n", s, name, *namelen);
/* Check if what we've received is valid. Should we use IsBadReadPtr? */ if( (name == NULL) || (namelen == NULL) )
Taking into account check after the trace printing the contents of namelen should be replaced by printing its pointer. -- Dmitry.
4817
Age (days ago)
4817
Last active (days ago)
0 comments
1 participants
participants (1)
-
Dmitry Timoshkov