Commit 68831826 authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

itss: Use zero terminated WCHAR strings.

parent c90294ab
......@@ -148,16 +148,16 @@ static ULONG WINAPI ITSInternetProtocol_Release(IInternetProtocol *iface)
static LPCWSTR skip_schema(LPCWSTR url)
{
static const WCHAR its_schema[] = {'i','t','s',':'};
static const WCHAR msits_schema[] = {'m','s','-','i','t','s',':'};
static const WCHAR mk_schema[] = {'m','k',':','@','M','S','I','T','S','t','o','r','e',':'};
if(!wcsnicmp(its_schema, url, ARRAY_SIZE(its_schema)))
return url + ARRAY_SIZE(its_schema);
if(!wcsnicmp(msits_schema, url, ARRAY_SIZE(msits_schema)))
return url + ARRAY_SIZE(msits_schema);
if(!wcsnicmp(mk_schema, url, ARRAY_SIZE(mk_schema)))
return url + ARRAY_SIZE(mk_schema);
static const WCHAR its_schema[] = L"its:";
static const WCHAR msits_schema[] = L"ms-its:";
static const WCHAR mk_schema[] = L"mk:@MSITStore:";
if(!wcsnicmp(its_schema, url, ARRAY_SIZE(its_schema) - 1))
return url + ARRAY_SIZE(its_schema) - 1;
if(!wcsnicmp(msits_schema, url, ARRAY_SIZE(msits_schema) - 1))
return url + ARRAY_SIZE(msits_schema) - 1;
if(!wcsnicmp(mk_schema, url, ARRAY_SIZE(mk_schema) - 1))
return url + ARRAY_SIZE(mk_schema) - 1;
return NULL;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment