mshtml: Added nsIFileURL::GetFile implementation.
This commit is contained in:
parent
74451bf36a
commit
5e5129935f
|
@ -781,6 +781,7 @@ HRESULT nsnode_to_nsstring(nsIDOMNode*,nsAString*) DECLSPEC_HIDDEN;
|
|||
void get_editor_controller(NSContainer*) DECLSPEC_HIDDEN;
|
||||
nsresult get_nsinterface(nsISupports*,REFIID,void**) DECLSPEC_HIDDEN;
|
||||
nsIWritableVariant *create_nsvariant(void) DECLSPEC_HIDDEN;
|
||||
nsresult create_nsfile(const PRUnichar*,nsIFile**) DECLSPEC_HIDDEN;
|
||||
|
||||
HRESULT create_pending_window(HTMLOuterWindow*,nsChannelBSC*) DECLSPEC_HIDDEN;
|
||||
void set_current_mon(HTMLOuterWindow*,IMoniker*) DECLSPEC_HIDDEN;
|
||||
|
|
|
@ -79,7 +79,7 @@ static ATOM nscontainer_class;
|
|||
static WCHAR gecko_path[MAX_PATH];
|
||||
static unsigned gecko_path_len;
|
||||
|
||||
static nsresult create_nsfile(const PRUnichar *path, nsIFile **ret)
|
||||
nsresult create_nsfile(const PRUnichar *path, nsIFile **ret)
|
||||
{
|
||||
nsAString str;
|
||||
nsresult nsres;
|
||||
|
|
|
@ -2705,8 +2705,19 @@ static nsresult NSAPI nsURL_GetRelativeSpec(nsIFileURL *iface, nsIURI *aURIToCom
|
|||
static nsresult NSAPI nsFileURL_GetFile(nsIFileURL *iface, nsIFile **aFile)
|
||||
{
|
||||
nsWineURI *This = impl_from_nsIFileURL(iface);
|
||||
FIXME("(%p)->(%p)\n", This, aFile);
|
||||
return NS_ERROR_NOT_IMPLEMENTED;
|
||||
WCHAR path[MAX_PATH];
|
||||
DWORD size;
|
||||
HRESULT hres;
|
||||
|
||||
TRACE("(%p)->(%p)\n", This, aFile);
|
||||
|
||||
hres = CoInternetParseIUri(This->uri, PARSE_PATH_FROM_URL, 0, path, sizeof(path)/sizeof(WCHAR), &size, 0);
|
||||
if(FAILED(hres)) {
|
||||
WARN("CoInternetParseIUri failed: %08x\n", hres);
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
|
||||
return create_nsfile(path, aFile);
|
||||
}
|
||||
|
||||
static nsresult NSAPI nsFileURL_SetFile(nsIFileURL *iface, nsIFile *aFile)
|
||||
|
|
Loading…
Reference in New Issue