Re: [1/4](try 2)wininet: parse cookie information from cookie value
17 Feb
2009
17 Feb
'09
2:14 p.m.
Aric Stewart <aric(a)codeweavers.com> writes:
+ ptr = strchrW(ptr,';'); + *ptr = 0; + ptr++; + while (*ptr == ' ') ptr++; /* whitespace */ + /* FIXME use LOCALE_INVARIANT when implemented */ + if (CompareStringW(MAKELCID(LANG_ENGLISH, SUBLANG_DEFAULT), + NORM_IGNORECASE, ptr, 6, szDomain, 6) == 2)
You need to check that the next char is a valid terminator (probably '=', not sure if other values are possible). Also using strncmpiW would make the code more readable. -- Alexandre Julliard julliard(a)winehq.org
6147
Age (days ago)
6147
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexandre Julliard