From: Nikolay Sivov Subject: Re: [PATCH 3/3] iphlpapi: Implement ParseNetworkString for IPv6 addresses and services Message-Id: <123d7e8c-64f7-0bab-3c74-feab1b072159@codeweavers.com> Date: Thu, 19 Mar 2020 08:06:29 +0300 In-Reply-To: <20200319030638.43405-3-alexhenrie24@gmail.com> References: <20200319030638.43405-1-alexhenrie24@gmail.com> <20200319030638.43405-3-alexhenrie24@gmail.com> On 3/19/20 6:06 AM, Alex Henrie wrote: > + if (type & NET_STRING_IPV6_ADDRESS) > + { > + status = RtlIpv6StringToAddressExW(str, &temp_addr6, &temp_scope, &temp_port); > + if (SUCCEEDED(status) && !temp_port) > + { NTSTATUS is usually checked for 0 aka STATUS_SUCCESS.