[PATCH] netprofm: set *ret=NULL if no more connections

Jactry Zeng jzeng at codeweavers.com
Sat Jan 23 20:21:09 CST 2021


Hi Alex,

I have sent a patch for the same issue a few days ago: https://source.winehq.org/patches/data/198363
Does it fix the issue of the application you tested with?

On 1/24/21 6:51 AM, Alex Xu (Hello71) wrote:
> Qt 5.14+ tries to check network connection suitability when any network
> connection is made. Unfortunately, this is done incorrectly. The return
> value of IEnumNetworkConnections::Next is only checked for failure, not
> for S_FALSE. Instead, !*ret is used to quit the loop.
>
> Apparently, Windows puts NULL in the output in this case. It is possible
> that all of the non-populated slots are actually set to NULL, but Qt
> only uses count=1. To work around the issue, make Wine set NULL too.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 495 bytes
Desc: OpenPGP digital signature
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20210124/81a155da/attachment.sig>


More information about the wine-devel mailing list