X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Fcompat%2Fwindows%2Fwincompat.c;h=98bc2d788aac5222f4007b8d7cb5e76fb7103a2a;hb=de2b14e15ff63cfd0218691532e7c7e9153f7c04;hp=890565bd2543cd11ba540e91f4f846e69271ad5f;hpb=51e407dccb00b6b2bf3b39ffd1973b3049225012;p=catta 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();