X-Git-Url: http://git.meshlink.io/?p=catta;a=blobdiff_plain;f=src%2Fcompat%2Fwindows%2Fwincompat.c;h=98bc2d788aac5222f4007b8d7cb5e76fb7103a2a;hp=890565bd2543cd11ba540e91f4f846e69271ad5f;hb=de2b14e15ff63cfd0218691532e7c7e9153f7c04;hpb=aa30c333011fc09b057c0468151b73ba6828b25e diff --git a/src/compat/windows/wincompat.c b/src/compat/windows/wincompat.c index 890565b..98bc2d7 100644 --- a/src/compat/windows/wincompat.c +++ b/src/compat/windows/wincompat.c @@ -231,7 +231,7 @@ ssize_t sendmsg(int sockfd, const struct msghdr *msg, int flags) int ioctl(int d, unsigned long request, int *p) { - u_long arg = 0; + u_long arg = *p; if(ioctlsocket(d, request, &arg) == SOCKET_ERROR) { errno = wsa_errno();