[PATCH] iphlpapi: Remove check for negative value.

Alexandre Julliard julliard at winehq.org
Thu Nov 2 11:06:36 CDT 2017


Andrey Gusev <andrey.goosev at gmail.com> writes:

> +++ b/dlls/iphlpapi/ipstats.c
> @@ -2056,7 +2056,7 @@ static unsigned int find_owning_pid( struct pid_map *map, unsigned int num_entri
>      for (i = 0; i < num_entries; i++)
>      {
>          fd_len = proc_pidinfo( map[i].unix_pid, PROC_PIDLISTFDS, 0, NULL, 0 );
> -        if (fd_len <= 0) continue;
> +        if (fd_len == 0) continue;

The function returns int, probably the variable type should be changed
instead.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list