Commit fc899dfa authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Reimplement nsIURL::GetFileBaseName on top of IUri.

parent b24b06a7
...@@ -2662,14 +2662,19 @@ static nsresult NSAPI nsURL_SetFileName(nsIURL *iface, const nsACString *aFileNa ...@@ -2662,14 +2662,19 @@ static nsresult NSAPI nsURL_SetFileName(nsIURL *iface, const nsACString *aFileNa
static nsresult NSAPI nsURL_GetFileBaseName(nsIURL *iface, nsACString *aFileBaseName) static nsresult NSAPI nsURL_GetFileBaseName(nsIURL *iface, nsACString *aFileBaseName)
{ {
nsWineURI *This = impl_from_nsIURL(iface); nsWineURI *This = impl_from_nsIURL(iface);
const WCHAR *file, *ext;
BSTR path;
nsresult nsres;
TRACE("(%p)->(%p)\n", This, aFileBaseName); TRACE("(%p)->(%p)\n", This, aFileBaseName);
if(This->nsurl) nsres = get_uri_path(This, &path, &file, &ext);
return nsIURL_GetFileBaseName(This->nsurl, aFileBaseName); if(NS_FAILED(nsres))
return nsres;
FIXME("default action not implemented\n"); nsres = return_wstr_nsacstr(aFileBaseName, file, ext-file);
return NS_ERROR_NOT_IMPLEMENTED; SysFreeString(path);
return nsres;
} }
static nsresult NSAPI nsURL_SetFileBaseName(nsIURL *iface, const nsACString *aFileBaseName) static nsresult NSAPI nsURL_SetFileBaseName(nsIURL *iface, const nsACString *aFileBaseName)
......
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