From 36883f29eadf706d48a4db35e5c2b570dd049f9f Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Sat, 26 Jan 2013 04:12:01 +0100 Subject: [PATCH] win/udp: fix bug in getsockopt() return value check --- src/win/udp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/win/udp.c b/src/win/udp.c index f760dc01b..212a7823b 100644 --- a/src/win/udp.c +++ b/src/win/udp.c @@ -93,7 +93,7 @@ static int uv_udp_set_socket(uv_loop_t* loop, uv_udp_t* handle, SOCKET socket, /* if the user is using the default UDP driver (AFD) and has no other */ /* LSPs stacked on top. Here we check whether that is the case. */ opt_len = (int) sizeof info; - if (!getsockopt(socket, + if (getsockopt(socket, SOL_SOCKET, SO_PROTOCOL_INFOW, (char*) &info,