mshtml: Reimplement nsIURL::GetFileName on top of IUri.
This commit is contained in:
parent
5458e5f6de
commit
b24b06a7cb
|
@ -2626,14 +2626,19 @@ static nsresult NSAPI nsURL_SetDirectory(nsIURL *iface, const nsACString *aDirec
|
||||||
static nsresult NSAPI nsURL_GetFileName(nsIURL *iface, nsACString *aFileName)
|
static nsresult NSAPI nsURL_GetFileName(nsIURL *iface, nsACString *aFileName)
|
||||||
{
|
{
|
||||||
nsWineURI *This = impl_from_nsIURL(iface);
|
nsWineURI *This = impl_from_nsIURL(iface);
|
||||||
|
const WCHAR *file;
|
||||||
|
BSTR path;
|
||||||
|
nsresult nsres;
|
||||||
|
|
||||||
TRACE("(%p)->(%p)\n", This, aFileName);
|
TRACE("(%p)->(%p)\n", This, aFileName);
|
||||||
|
|
||||||
if(This->nsurl)
|
nsres = get_uri_path(This, &path, &file, NULL);
|
||||||
return nsIURL_GetFileName(This->nsurl, aFileName);
|
if(NS_FAILED(nsres))
|
||||||
|
return nsres;
|
||||||
|
|
||||||
FIXME("default action not implemented\n");
|
nsres = return_wstr_nsacstr(aFileName, file, -1);
|
||||||
return NS_ERROR_NOT_IMPLEMENTED;
|
SysFreeString(path);
|
||||||
|
return nsres;
|
||||||
}
|
}
|
||||||
|
|
||||||
static nsresult NSAPI nsURL_SetFileName(nsIURL *iface, const nsACString *aFileName)
|
static nsresult NSAPI nsURL_SetFileName(nsIURL *iface, const nsACString *aFileName)
|
||||||
|
|
Loading…
Reference in New Issue