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