Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
d1256404
Commit
d1256404
authored
Aug 03, 2011
by
Jacek Caban
Committed by
Alexandre Julliard
Aug 03, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added IURi-based nsIURL::GetDirectory implementation.
parent
3673f6b7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
4 deletions
+25
-4
nsio.c
dlls/mshtml/nsio.c
+25
-4
No files found.
dlls/mshtml/nsio.c
View file @
d1256404
...
...
@@ -2320,14 +2320,35 @@ static nsresult NSAPI nsURL_SetRef(nsIURL *iface, const nsACString *aRef)
static
nsresult
NSAPI
nsURL_GetDirectory
(
nsIURL
*
iface
,
nsACString
*
aDirectory
)
{
nsWineURI
*
This
=
impl_from_nsIURL
(
iface
);
char
*
dir
=
NULL
;
WCHAR
*
ptr
;
BSTR
path
;
HRESULT
hres
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
aDirectory
);
if
(
This
->
nsurl
)
return
nsIURL_GetDirectory
(
This
->
nsurl
,
aDirectory
)
;
if
(
!
ensure_uri
(
This
)
)
return
NS_ERROR_UNEXPECTED
;
FIXME
(
"default action not implemented
\n
"
);
return
NS_ERROR_NOT_IMPLEMENTED
;
hres
=
IUri_GetPath
(
This
->
uri
,
&
path
);
if
(
FAILED
(
hres
))
return
NS_ERROR_FAILURE
;
ptr
=
strrchrW
(
path
,
'/'
);
if
(
ptr
)
{
if
(
ptr
[
1
])
*
ptr
=
0
;
dir
=
heap_strdupWtoA
(
path
);
if
(
!
dir
)
{
SysFreeString
(
path
);
return
NS_ERROR_OUT_OF_MEMORY
;
}
}
SysFreeString
(
path
);
TRACE
(
"ret %s
\n
"
,
debugstr_a
(
dir
));
nsACString_SetData
(
aDirectory
,
dir
?
dir
:
""
);
return
NS_OK
;
}
static
nsresult
NSAPI
nsURL_SetDirectory
(
nsIURL
*
iface
,
const
nsACString
*
aDirectory
)
...
...
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