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
28624903
Commit
28624903
authored
Nov 25, 2010
by
Jacek Caban
Committed by
Alexandre Julliard
Nov 25, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Don't use wine_uri in nsIIOService::NewChannelFromURI implementation.
parent
74aabe94
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
nsio.c
dlls/mshtml/nsio.c
+10
-3
No files found.
dlls/mshtml/nsio.c
View file @
28624903
...
...
@@ -2829,10 +2829,10 @@ static nsresult NSAPI nsIOService_NewFileURI(nsIIOService *iface, nsIFile *aFile
static
nsresult
NSAPI
nsIOService_NewChannelFromURI
(
nsIIOService
*
iface
,
nsIURI
*
aURI
,
nsIChannel
**
_retval
)
{
PARSEDURLW
parsed_url
=
{
sizeof
(
PARSEDURLW
)};
nsChannel
*
ret
;
nsWineURI
*
wine_uri
;
nsresult
nsres
;
HRESULT
hres
;
TRACE
(
"(%p %p)
\n
"
,
aURI
,
_retval
);
...
...
@@ -2842,6 +2842,11 @@ static nsresult NSAPI nsIOService_NewChannelFromURI(nsIIOService *iface, nsIURI
return
nsIIOService_NewChannelFromURI
(
nsio
,
aURI
,
_retval
);
}
if
(
!
ensure_uri
(
wine_uri
))
{
nsIURI_Release
(
NSURI
(
wine_uri
));
return
NS_ERROR_UNEXPECTED
;
}
ret
=
heap_alloc_zero
(
sizeof
(
nsChannel
));
ret
->
lpHttpChannelVtbl
=
&
nsChannelVtbl
;
...
...
@@ -2855,8 +2860,10 @@ static nsresult NSAPI nsIOService_NewChannelFromURI(nsIIOService *iface, nsIURI
nsIURI_AddRef
(
aURI
);
ret
->
original_uri
=
aURI
;
ret
->
url_scheme
=
wine_uri
->
wine_url
&&
SUCCEEDED
(
ParseURLW
(
wine_uri
->
wine_url
,
&
parsed_url
))
?
parsed_url
.
nScheme
:
URL_SCHEME_UNKNOWN
;
hres
=
IUri_GetScheme
(
wine_uri
->
uri
,
&
ret
->
url_scheme
);
if
(
FAILED
(
hres
))
ret
->
url_scheme
=
URL_SCHEME_UNKNOWN
;
*
_retval
=
NSCHANNEL
(
ret
);
return
NS_OK
;
...
...
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