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
9bb0ecce
Commit
9bb0ecce
authored
Sep 28, 2010
by
Jacek Caban
Committed by
Alexandre Julliard
Sep 28, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added nsIURI::GetHostPort implementation.
parent
cb85bad7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
2 deletions
+26
-2
nsio.c
dlls/mshtml/nsio.c
+26
-2
No files found.
dlls/mshtml/nsio.c
View file @
9bb0ecce
...
...
@@ -1837,14 +1837,38 @@ static nsresult NSAPI nsURI_SetPassword(nsIURL *iface, const nsACString *aPasswo
static
nsresult
NSAPI
nsURI_GetHostPort
(
nsIURL
*
iface
,
nsACString
*
aHostPort
)
{
nsWineURI
*
This
=
NSURI_THIS
(
iface
);
const
WCHAR
*
ptr
;
char
*
vala
;
BSTR
val
;
HRESULT
hres
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
aHostPort
);
if
(
This
->
nsuri
)
return
nsIURI_GetHostPort
(
This
->
nsuri
,
aHostPort
);
FIXME
(
"default action not implemented
\n
"
);
return
NS_ERROR_NOT_IMPLEMENTED
;
if
(
!
ensure_uri
(
This
))
return
NS_ERROR_UNEXPECTED
;
hres
=
IUri_GetAuthority
(
This
->
uri
,
&
val
);
if
(
FAILED
(
hres
))
{
WARN
(
"GetAuthority failed: %08x
\n
"
,
hres
);
return
NS_ERROR_UNEXPECTED
;
}
ptr
=
strchrW
(
val
,
'@'
);
if
(
!
ptr
)
ptr
=
val
;
vala
=
heap_strdupWtoA
(
ptr
);
SysFreeString
(
val
);
if
(
!
vala
)
return
NS_ERROR_OUT_OF_MEMORY
;
TRACE
(
"ret %s
\n
"
,
debugstr_a
(
vala
));
nsACString_SetData
(
aHostPort
,
vala
);
heap_free
(
vala
);
return
NS_OK
;
}
static
nsresult
NSAPI
nsURI_SetHostPort
(
nsIURL
*
iface
,
const
nsACString
*
aHostPort
)
...
...
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