[PATCH] mpr: properly handle the count set to -1 when enumerating connections.

Pierre Schweitzer pierre at reactos.org
Fri Jun 23 07:04:50 CDT 2017


Hi,

Please find attached a patch that solves a bug in MPR when enumerating
active connections with several providers and several connections. In
the specific case where the caller wants all the connections (providing
a -1 count), that count was improperly handled and even though all the
providers were filling the buffer, an incorrect count was returned to
the caller.
This is what that patch fixes.
I've been testing it with ReactOS.
And because sometimes pictures are better than words:
https://www.heisspiter.net/~Pierre/rostests/NFS_VBSF_net_use.png

Cheers,
-- 
Pierre Schweitzer <pierre at reactos.org>
System & Network Administrator
Senior Kernel Developer
ReactOS Deutschland e.V.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-mpr-properly-handle-the-count-set-to-1-when-enumerat.patch
Type: text/x-patch
Size: 2496 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20170623/cb67d140/attachment.bin>


More information about the wine-patches mailing list