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),
> +
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
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/