Commit 59a1e6bf authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

ws2_32: Avoid a crash with tracing on.

parent 621454ef
......@@ -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)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment