From: Pierre Schweitzer Subject: [PATCH] mpr: Don't stop enumeration on the first failing network provider. Message-Id: Date: Fri, 23 Jun 2017 19:03:00 +0200 Hi, This patch fixes another bug in connections enumeration when there are several network providers: if a provider doesn't have any connection, then, next providers are not queried even though they may have a connection. This patch fixes the behavior, so that all the providers are queried. I didn't plan fixing this at first (as I didn't know about that bug), hence the fact it's not linked to patch #135125. But you need the later first applied and then this one. Sorry about that. Cheers, -- Pierre Schweitzer System & Network Administrator Senior Kernel Developer ReactOS Deutschland e.V. From 130e01ca1d49f15914a5ed7eb021868518824bb3 Mon Sep 17 00:00:00 2001 From: Pierre Schweitzer Date: Fri, 23 Jun 2017 18:58:13 +0200 Subject: [PATCH] mpr: Don't stop enumeration on the first failing network provider. Signed-off-by: Pierre Schweitzer --- dlls/mpr/wnet.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/dlls/mpr/wnet.c b/dlls/mpr/wnet.c index abade95..bfe6275 100644 --- a/dlls/mpr/wnet.c +++ b/dlls/mpr/wnet.c @@ -1345,15 +1345,13 @@ static DWORD _enumerateConnectedW(PWNetEnumerator enumerator, DWORD* user_count, ++curr; } - if (*user_count != -1) - count = *user_count - total_count; - else - count = *user_count; size = left; } - if (ret != WN_SUCCESS || total_count == 0) - break; + if (*user_count != -1) + count = *user_count - total_count; + else + count = *user_count; } } -- 2.7.4