wininet: Add support for SSPI authentication for HTTP.

Alexandre Julliard julliard at
Fri May 18 04:18:30 CDT 2007

Robert Shearman <rob at> writes:

> Hmm, it seems strncmpiW already does that for me so I'm a little confused:
>> int strncmpiW( const WCHAR *str1, const WCHAR *str2, int n )
>> {
>>     int ret = 0;
>>     for ( ; n > 0; n--, str1++, str2++)
>>         if ((ret = tolowerW(*str1) - tolowerW(*str2)) || !*str1) break;
>>     return ret;
>> }

It does if the string is shorter, but not if it's longer. It's OK if
you want to check that the string is a strict subset, but that's not
usually what you want.

Alexandre Julliard
julliard at

More information about the wine-devel mailing list