Pierre Schweitzer : mpr: Don' t stop enumeration on the first failing network provider.
Alexandre Julliard
julliard at winehq.org
Fri Jun 23 13:08:00 CDT 2017
Module: wine
Branch: master
Commit: 8d461c1f42b0b667b2aa6a235d007eea1dd6f561
URL: http://source.winehq.org/git/wine.git/?a=commit;h=8d461c1f42b0b667b2aa6a235d007eea1dd6f561
Author: Pierre Schweitzer <pierre at 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 at reactos.org>
Signed-off-by: Alexandre Julliard <julliard at 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;
}
}
More information about the wine-cvs
mailing list