ws2_32: Avoid a crash with tracing on.

This commit is contained in:
Hans Leidekker 2013-10-02 16:04:48 +02:00 committed by Alexandre Julliard
parent 621454ef0e
commit 59a1e6bff9
1 changed files with 1 additions and 1 deletions

View File

@ -2956,7 +2956,7 @@ INT WINAPI WS_getsockopt(SOCKET s, INT level,
INT ret = 0;
TRACE("socket: %04lx, level 0x%x, name 0x%x, ptr %p, len %d\n",
s, level, optname, optval, *optlen);
s, level, optname, optval, optlen ? *optlen : 0);
switch(level)
{