[PATCH] iphlpapi: Remove check for negative value.
Andrey Gusev
andrey.goosev at gmail.com
Thu Nov 2 05:21:25 CDT 2017
Signed-off-by: Andrey Gusev <andrey.goosev at gmail.com>
---
dlls/iphlpapi/ipstats.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/iphlpapi/ipstats.c b/dlls/iphlpapi/ipstats.c
index 47df7ebfde..c7a01d5de8 100644
--- a/dlls/iphlpapi/ipstats.c
+++ 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;
fds = HeapAlloc( GetProcessHeap(), 0, fd_len );
if (!fds) continue;
--
2.13.6
More information about the wine-patches
mailing list