Module: wine Branch: master Commit: 8d461c1f42b0b667b2aa6a235d007eea1dd6f561 URL: http://source.winehq.org/git/wine.git/?a=commit;h=8d461c1f42b0b667b2aa6a235d... Author: Pierre Schweitzer <pierre(a)reactos.org> Date: Fri Jun 23 18:58:13 2017 +0200 mpr: Don't stop enumeration on the first failing network provider. Signed-off-by: Pierre Schweitzer <pierre(a)reactos.org> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- 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; } }