Hi Zebediah,
On 12/09/2020 18:10, Zebediah Figura wrote:
if (err == WSAEACCES) /* raw socket denied */
{
if (type == SOCK_RAW)
ERR_(winediag)("Failed to create a socket of type SOCK_RAW, this requires special permissions.\n");
else
ERR_(winediag)("Failed to create socket, this requires special permissions.\n");
}
Shouldn't this be part of init ioctl error handling instead?
WSASetLastError(err);
return INVALID_SOCKET; }
- SERVER_END_REQ;
- if (ret)
- create_params.family = unixaf;
- create_params.type = unixtype;
- create_params.protocol = protocol;
- create_params.flags = flags & ~WSA_FLAG_NO_HANDLE_INHERIT;
It may probably be taken care later, but note that it would eventually need to pass Windows variant of family and type instead. PE modules should not need to know host values.
Thanks,
Jacek