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
41c35a1c
Commit
41c35a1c
authored
Oct 13, 2007
by
Jacek Caban
Committed by
Alexandre Julliard
Oct 15, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Use wine scheme mechanism in do_load_from_moniker_hack.
parent
954d4477
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
6 deletions
+14
-6
nsio.c
dlls/mshtml/nsio.c
+14
-6
No files found.
dlls/mshtml/nsio.c
View file @
41c35a1c
...
...
@@ -568,7 +568,9 @@ static nsresult NSAPI nsChannel_Open(nsIHttpChannel *iface, nsIInputStream **_re
static
BOOL
do_load_from_moniker_hack
(
nsChannel
*
This
)
{
PRBool
b
=
FALSE
;
nsACString
scheme_str
;
nsresult
nsres
;
BOOL
ret
=
TRUE
;
/*
* We should always load the page from IMoniker, but Wine is not yet
...
...
@@ -581,12 +583,18 @@ static BOOL do_load_from_moniker_hack(nsChannel *This)
if
(
!
This
->
channel
)
return
TRUE
;
/* Load about protocol from moniker */
nsIWineURI_SchemeIs
(
This
->
uri
,
"about"
,
&
b
);
if
(
b
)
return
TRUE
;
nsACString_Init
(
&
scheme_str
,
NULL
);
nsres
=
nsIWineURI_GetScheme
(
This
->
uri
,
&
scheme_str
);
return
FALSE
;
if
(
NS_SUCCEEDED
(
nsres
))
{
const
char
*
scheme
;
nsACString_GetData
(
&
scheme_str
,
&
scheme
,
NULL
);
ret
=
!
strcmp
(
scheme
,
"wine"
);
}
nsACString_Finish
(
&
scheme_str
);
return
ret
;
}
static
HRESULT
create_mon_for_nschannel
(
nsChannel
*
channel
,
IMoniker
**
mon
)
...
...
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