Re: [1/4](try 2)wininet: parse cookie information from cookie value

2009-02-17 Thread Alexandre Julliard
Aric Stewart writes: > +ptr = strchrW(ptr,';'); > +*ptr = 0; > +ptr++; > +while (*ptr == ' ') ptr++; /* whitespace */ > +/* FIXME use LOCALE_INVARIANT when implemented */ > +if (CompareStringW(MAKELCID(LANG_ENGLISH, SUBLANG_DEFAULT), > +

Re: wininet: parse cookie information from cookie value

2009-02-16 Thread Aric Stewart
Thanks for the tip. Resent. -aric Rob Shearman wrote: > 2009/2/13 Aric Stewart : >> +if (CompareStringW(GetThreadLocale(), NORM_IGNORECASE, ptr, 6, >> + szDomain, 6) == 2) > > LOCALE_INVARIANT should be used when comparing with a constant string. > See here for

Re: wininet: parse cookie information from cookie value

2009-02-13 Thread Rob Shearman
2009/2/13 Aric Stewart : > +if (CompareStringW(GetThreadLocale(), NORM_IGNORECASE, ptr, 6, > + szDomain, 6) == 2) LOCALE_INVARIANT should be used when comparing with a constant string. See here for the reasons why: http://blogs.msdn.com/michkap/archive/2004/12/29/