[PATCH] Added support for ConvertLengthToIpv4Mask in iphlpapi
Dagfinn Reiakvam
dagfinn at reiakvam.no
Fri Mar 16 11:52:49 CDT 2018
On 15. mars 2018 22:02, Uberdaff wrote:
> From: Dagfinn Reiakvam <dagfinn at reiakvam.no>
>
> ---
> dlls/iphlpapi/iphlpapi.spec | 2 +-
> dlls/iphlpapi/iphlpapi_main.c | 11 +++++++++++
> 2 files changed, 12 insertions(+), 1 deletion(-)
>
> diff --git a/dlls/iphlpapi/iphlpapi.spec b/dlls/iphlpapi/iphlpapi.spec
> index b6c9aef..bbd1ed8 100644
> --- a/dlls/iphlpapi/iphlpapi.spec
> +++ b/dlls/iphlpapi/iphlpapi.spec
> @@ -23,7 +23,7 @@
> @ stdcall ConvertInterfaceNameToLuidW( wstr ptr )
> #@ stub ConvertInterfacePhysicalAddressToLuid
> #@ stub ConvertIpv4MaskToLength
> -#@ stub ConvertLengthToIpv4Mask
> +@ stdcall ConvertLengthToIpv4Mask( long ptr )
> #@ stub ConvertRemoteInterfaceAliasToLuid
> #@ stub ConvertRemoteInterfaceGuidToLuid
> #@ stub ConvertRemoteInterfaceIndexToLuid
> diff --git a/dlls/iphlpapi/iphlpapi_main.c b/dlls/iphlpapi/iphlpapi_main.c
> index 97284ed..891f8f0 100644
> --- a/dlls/iphlpapi/iphlpapi_main.c
> +++ b/dlls/iphlpapi/iphlpapi_main.c
> @@ -3223,6 +3223,17 @@ DWORD WINAPI ConvertInterfaceNameToLuidW(const WCHAR *name, NET_LUID *luid)
> }
>
> /******************************************************************
> + * ConvertLengthToIpv4Mask (IPHLPAPI.@)
> + */
> +DWORD WINAPI ConvertLengthToIpv4Mask(ULONG MaskLength, PULONG Mask)
> +{
> + if(MaskLength <= 32)
> + return ERROR_INVALID_PARAMETER;
> + *Mask = 0xffffffff << ( 32 - MaskLength );
> + return NO_ERROR;
> +}
> +
> +/******************************************************************
> * if_nametoindex (IPHLPAPI.@)
> */
> IF_INDEX WINAPI IPHLP_if_nametoindex(const char *name)
This patch can be rejected. Sorry for any inconvenience.
A new patch has been submitted.
- Dagfinn
More information about the wine-devel
mailing list