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
593d3f44
Commit
593d3f44
authored
Apr 08, 2011
by
Jacek Caban
Committed by
Alexandre Julliard
Apr 08, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Reimplement nsIURI::SetHost on top of IUriBuilder.
parent
094db744
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
9 deletions
+17
-9
nsio.c
dlls/mshtml/nsio.c
+17
-9
No files found.
dlls/mshtml/nsio.c
View file @
593d3f44
...
...
@@ -1921,25 +1921,33 @@ static nsresult NSAPI nsURI_GetHost(nsIURL *iface, nsACString *aHost)
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
aHost
);
if
(
This
->
nsuri
)
return
nsIURI_GetHost
(
This
->
nsuri
,
aHost
);
return
get_uri_string
(
This
,
Uri_PROPERTY_HOST
,
aHost
);
}
static
nsresult
NSAPI
nsURI_SetHost
(
nsIURL
*
iface
,
const
nsACString
*
aHost
)
{
nsWineURI
*
This
=
impl_from_nsIURL
(
iface
);
const
char
*
hosta
;
WCHAR
*
host
;
HRESULT
hres
;
TRACE
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_nsacstr
(
aHost
));
if
(
This
->
nsuri
)
{
invalidate_uri
(
This
);
return
nsIURI_SetHost
(
This
->
nsuri
,
aHost
);
}
if
(
!
ensure_uri_builder
(
This
))
return
NS_ERROR_UNEXPECTED
;
FIXME
(
"default action not implemented
\n
"
);
return
NS_ERROR_NOT_IMPLEMENTED
;
nsACString_GetData
(
aHost
,
&
hosta
);
host
=
heap_strdupAtoW
(
hosta
);
if
(
!
host
)
return
NS_ERROR_OUT_OF_MEMORY
;
hres
=
IUriBuilder_SetHost
(
This
->
uri_builder
,
host
);
heap_free
(
host
);
if
(
FAILED
(
hres
))
return
NS_ERROR_UNEXPECTED
;
sync_wine_url
(
This
);
return
NS_OK
;
}
static
nsresult
NSAPI
nsURI_GetPort
(
nsIURL
*
iface
,
PRInt32
*
aPort
)
...
...
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