mirror of
https://github.com/reactos/reactos.git
synced 2025-01-12 09:07:54 +00:00
- Fix implementation of WSHGetWildcardSockaddr
- Implement WSHGetBroadcastSockaddr svn path=/trunk/; revision=43153
This commit is contained in:
parent
fe5958dbfe
commit
dc5a52bb5a
1 changed files with 22 additions and 2 deletions
|
@ -75,7 +75,17 @@ WSHGetBroadcastSockaddr(
|
|||
OUT PSOCKADDR Sockaddr,
|
||||
OUT PINT SockaddrLength)
|
||||
{
|
||||
UNIMPLEMENTED
|
||||
DWORD Size = 2 * sizeof(UINT);
|
||||
|
||||
if (*SockaddrLength < Size)
|
||||
return WSAEFAULT;
|
||||
|
||||
RtlZeroMemory(Sockaddr, *SockaddrLength);
|
||||
|
||||
Sockaddr->sa_family = AF_INET;
|
||||
*((PUINT)Sockaddr->sa_data) = INADDR_BROADCAST;
|
||||
|
||||
*SockaddrLength = Size;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@ -172,8 +182,18 @@ WSHGetWildcardSockaddr(
|
|||
OUT PSOCKADDR Sockaddr,
|
||||
OUT PINT SockaddrLength)
|
||||
{
|
||||
RtlZeroMemory((PVOID)Sockaddr, *SockaddrLength);
|
||||
DWORD Size = 2 * sizeof(UINT);
|
||||
|
||||
if (*SockaddrLength < Size)
|
||||
return WSAEFAULT;
|
||||
|
||||
RtlZeroMemory(Sockaddr, *SockaddrLength);
|
||||
|
||||
Sockaddr->sa_family = AF_INET;
|
||||
*((PUINT)Sockaddr->sa_data) = INADDR_ANY;
|
||||
|
||||
*SockaddrLength = Size;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue