X-Git-Url: https://git.reactos.org/?p=reactos.git;a=blobdiff_plain;f=reactos%2Fdll%2Fwin32%2Flibtirpc%2Fsrc%2Frpc_generic.c;h=f3bbc73c461fc5f04909e2a636048994aea00660;hp=8d457d526a71944b47eca61deca899b71f105a35;hb=962da983407626abd2cd739d13cbce077c4bce5c;hpb=080086f7e72e7c3d1f0dc78a0f37db9530ad4d06 diff --git a/reactos/dll/win32/libtirpc/src/rpc_generic.c b/reactos/dll/win32/libtirpc/src/rpc_generic.c index 8d457d526a7..f3bbc73c461 100644 --- a/reactos/dll/win32/libtirpc/src/rpc_generic.c +++ b/reactos/dll/win32/libtirpc/src/rpc_generic.c @@ -488,7 +488,9 @@ __rpc_fd2sockinfo(SOCKET fd, struct __rpc_sockinfo *sip) WSAPROTOCOL_INFO proto_info; int proto_info_size = sizeof(proto_info); if (getsockopt(fd, SOL_SOCKET, SO_PROTOCOL_INFO, (char *)&proto_info, &proto_info_size) == SOCKET_ERROR) { +#ifndef __REACTOS__ int err = WSAGetLastError(); +#endif return 0; } len = proto_info.iMaxSockAddr; @@ -503,7 +505,9 @@ __rpc_fd2sockinfo(SOCKET fd, struct __rpc_sockinfo *sip) len = sizeof type; if (getsockopt(fd, SOL_SOCKET, SO_TYPE, (char *)&type, &len) == SOCKET_ERROR) { +#ifndef __REACTOS__ int err = WSAGetLastError(); +#endif return 0; }