[PATCH v2] ws2_32: Drop dependencies on system getprotoby(name|number) functions

Alex Henrie alexhenrie24 at gmail.com
Tue Jul 14 11:01:56 CDT 2020


On Tue, Jul 14, 2020 at 9:59 AM Alex Henrie <alexhenrie24 at gmail.com> wrote:
>
>  On Tue, Jul 14, 2020 at 9:41 AM Zebediah Figura <z.figura12 at gmail.com> wrote:
> >
> > > +    const char *names[3];
> >
> > I guess this was copied from the implementation, but surely this can
> > just be names[2]?
>
> The NULL name at the end is used as a sentinel in the tests, the same
> as in the implementation:
>
>             for (j = 0; protocols[i].names[0][j]; j++)

Oops, I copied the wrong line:

        for (j = 0; ref->names[1+j]; j++)

-Alex



More information about the wine-devel mailing list