Commit 5ca8e4b0 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

kernelbase: Use scheme_is_opaque() in UrlIs().

parent 37aabda6
...@@ -4816,16 +4816,7 @@ BOOL WINAPI UrlIsA(const char *url, URLIS Urlis) ...@@ -4816,16 +4816,7 @@ BOOL WINAPI UrlIsA(const char *url, URLIS Urlis)
case URLIS_OPAQUE: case URLIS_OPAQUE:
base.cbSize = sizeof(base); base.cbSize = sizeof(base);
if (ParseURLA(url, &base) != S_OK) return FALSE; /* invalid scheme */ if (ParseURLA(url, &base) != S_OK) return FALSE; /* invalid scheme */
switch (base.nScheme) return scheme_is_opaque( base.nScheme );
{
case URL_SCHEME_MAILTO:
case URL_SCHEME_SHELL:
case URL_SCHEME_JAVASCRIPT:
case URL_SCHEME_VBSCRIPT:
case URL_SCHEME_ABOUT:
return TRUE;
}
return FALSE;
case URLIS_FILEURL: case URLIS_FILEURL:
return (CompareStringA(LOCALE_INVARIANT, NORM_IGNORECASE, url, 5, "file:", 5) == CSTR_EQUAL); return (CompareStringA(LOCALE_INVARIANT, NORM_IGNORECASE, url, 5, "file:", 5) == CSTR_EQUAL);
......
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