[mpr] Fix infinite loop in wnetInit; fixes bug 6002 (take 2)

Dan Kegel dank at kegel.com
Sat Aug 19 23:45:10 CDT 2006

Juan says the patch is ok but pointed out I had tabs in it.  Fixed.

See http://bugs.winehq.org/show_bug.cgi?id=6002

Installing Lotus Notes 7 appends ",npnotes" to
This tickled a bug in wine's mpr.dll which caused any app that tried
to use wininet.dll to hang.  The last message from +all from the hung app is
0009:trace:mpr:wnetInit provider order is L",npnotes"
Turns out the code in mrp.dll that processes that comma-separated list was
buggy in two places; I don't think it ever found the second provider
in the list.
Here's a quick fix; I'm not familiar with mpr, so I don't know if it's complete,
but it does get me past the problem, and it does cause the second provider to
be noticed.

  mpr: fix bug in ProviderOrder comma processing in wnetInit()

 wnet.c |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wnet-providerorder-2.patch
Type: text/x-patch
Size: 1014 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20060819/6b69d9d7/wnet-providerorder-2.bin

More information about the wine-patches mailing list