mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 12:49:45 +00:00
mshtml: Added SchemeIs implementation.
This commit is contained in:
parent
2a0d583e72
commit
693e62c858
@ -1435,10 +1435,20 @@ static nsresult NSAPI nsURI_SchemeIs(nsIWineURI *iface, const char *scheme, PRBo
|
||||
|
||||
TRACE("(%p)->(%s %p)\n", This, debugstr_a(scheme), _retval);
|
||||
|
||||
if(This->use_wine_url) {
|
||||
WCHAR buf[INTERNET_MAX_SCHEME_LENGTH];
|
||||
int len = MultiByteToWideChar(CP_ACP, 0, scheme, -1, buf, sizeof(buf)/sizeof(WCHAR))-1;
|
||||
|
||||
*_retval = strlenW(This->wine_url) > len
|
||||
&& This->wine_url[len] == ':'
|
||||
&& !memcmp(buf, This->wine_url, len*sizeof(WCHAR));
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
if(This->uri)
|
||||
return nsIURI_SchemeIs(This->uri, scheme, _retval);
|
||||
|
||||
FIXME("default action not implemented\n");
|
||||
TRACE("returning error\n");
|
||||
return NS_ERROR_NOT_IMPLEMENTED;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user