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
a1205c6a
Commit
a1205c6a
authored
Feb 03, 2011
by
Jacek Caban
Committed by
Alexandre Julliard
Feb 04, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added nsIURI::SetSpec implementation.
parent
680f2512
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
6 deletions
+24
-6
nsio.c
dlls/mshtml/nsio.c
+24
-6
No files found.
dlls/mshtml/nsio.c
View file @
a1205c6a
...
...
@@ -1654,16 +1654,34 @@ static nsresult NSAPI nsURI_GetSpec(nsIURL *iface, nsACString *aSpec)
static
nsresult
NSAPI
nsURI_SetSpec
(
nsIURL
*
iface
,
const
nsACString
*
aSpec
)
{
nsWineURI
*
This
=
impl_from_nsIURL
(
iface
);
const
char
*
speca
;
WCHAR
*
spec
;
IUri
*
uri
;
HRESULT
hres
;
TRACE
(
"(%p)->(%
p
)
\n
"
,
This
,
debugstr_nsacstr
(
aSpec
));
TRACE
(
"(%p)->(%
s
)
\n
"
,
This
,
debugstr_nsacstr
(
aSpec
));
if
(
This
->
nsuri
)
{
invalidate_uri
(
This
);
return
nsIURI_SetSpec
(
This
->
nsuri
,
aSpec
);
nsACString_GetData
(
aSpec
,
&
speca
);
spec
=
heap_strdupAtoW
(
speca
);
if
(
!
spec
)
return
NS_ERROR_OUT_OF_MEMORY
;
hres
=
CreateUri
(
spec
,
0
,
0
,
&
uri
);
heap_free
(
spec
);
if
(
FAILED
(
hres
))
{
WARN
(
"CreateUri failed: %08x
\n
"
,
hres
);
return
NS_ERROR_FAILURE
;
}
FIXME
(
"default action not implemented
\n
"
);
return
NS_ERROR_NOT_IMPLEMENTED
;
invalidate_uri
(
This
);
if
(
This
->
uri_builder
)
{
IUriBuilder_Release
(
This
->
uri_builder
);
This
->
uri_builder
=
NULL
;
}
This
->
uri
=
uri
;
sync_wine_url
(
This
);
return
NS_OK
;
}
static
nsresult
NSAPI
nsURI_GetPrePath
(
nsIURL
*
iface
,
nsACString
*
aPrePath
)
...
...
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