Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
9a68ef40
Commit
9a68ef40
authored
Nov 20, 2014
by
Jacek Caban
Committed by
Alexandre Julliard
Nov 20, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added nsIURI::GetPrePath implementation.
parent
bcce460f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
2 deletions
+36
-2
nsio.c
dlls/mshtml/nsio.c
+36
-2
No files found.
dlls/mshtml/nsio.c
View file @
9a68ef40
...
...
@@ -2076,8 +2076,42 @@ static nsresult NSAPI nsURI_SetSpec(nsIFileURL *iface, const nsACString *aSpec)
static
nsresult
NSAPI
nsURI_GetPrePath
(
nsIFileURL
*
iface
,
nsACString
*
aPrePath
)
{
nsWineURI
*
This
=
impl_from_nsIFileURL
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
aPrePath
);
return
NS_ERROR_NOT_IMPLEMENTED
;
IUriBuilder
*
uri_builder
;
BSTR
display_uri
;
IUri
*
uri
;
int
len
;
nsresult
nsres
;
HRESULT
hres
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
aPrePath
);
if
(
!
ensure_uri
(
This
))
return
NS_ERROR_UNEXPECTED
;
hres
=
CreateIUriBuilder
(
This
->
uri
,
0
,
0
,
&
uri_builder
);
if
(
FAILED
(
hres
))
return
NS_ERROR_FAILURE
;
hres
=
IUriBuilder_RemoveProperties
(
uri_builder
,
Uri_HAS_PATH
|
Uri_HAS_QUERY
|
Uri_HAS_FRAGMENT
);
if
(
SUCCEEDED
(
hres
))
hres
=
IUriBuilder_CreateUriSimple
(
uri_builder
,
0
,
0
,
&
uri
);
IUriBuilder_Release
(
uri_builder
);
if
(
FAILED
(
hres
))
return
NS_ERROR_FAILURE
;
hres
=
IUri_GetDisplayUri
(
uri
,
&
display_uri
);
IUri_Release
(
uri
);
if
(
FAILED
(
hres
))
return
NS_ERROR_FAILURE
;
/* Remove trailing slash that may be appended as default path. */
len
=
SysStringLen
(
display_uri
);
if
(
len
&&
display_uri
[
len
-
1
]
==
'/'
)
display_uri
[
len
-
1
]
=
0
;
nsres
=
return_wstr_nsacstr
(
aPrePath
,
display_uri
,
-
1
);
SysFreeString
(
display_uri
);
return
nsres
;
}
static
nsresult
NSAPI
nsURI_GetScheme
(
nsIFileURL
*
iface
,
nsACString
*
aScheme
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment