mpr: Don't stop enumeration on the first failing network provider.

Signed-off-by: Pierre Schweitzer <pierre@reactos.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Pierre Schweitzer 2017-06-23 18:58:13 +02:00 committed by Alexandre Julliard
parent 51b4a42969
commit 8d461c1f42
1 changed files with 4 additions and 6 deletions

View File

@ -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;
}
}