From f369525725967cd25c96146be981b4969b7b03ec Mon Sep 17 00:00:00 2001 From: Pierre Schweitzer Date: Fri, 23 Jun 2017 19:29:31 +0000 Subject: [PATCH] [MPR] Import Wine commit: - 8d461c1f42b0b667b2aa6a235d007eea1dd6f561, Don't stop enumeration on the first failing network provider. This fixes 'net use' stoping connections enumeration when a network returns an error or no connection. CORE-13475 svn path=/trunk/; revision=75173 --- reactos/dll/win32/mpr/wnet.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/reactos/dll/win32/mpr/wnet.c b/reactos/dll/win32/mpr/wnet.c index 37ad58f8caf..7696304ba8a 100644 --- a/reactos/dll/win32/mpr/wnet.c +++ b/reactos/dll/win32/mpr/wnet.c @@ -1479,15 +1479,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.17.1