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
793b021f
Commit
793b021f
authored
Aug 18, 2010
by
Jacek Caban
Committed by
Alexandre Julliard
Aug 18, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Use fake scheme only for about protocol in nsIURI::GetScheme.
parent
ceab3817
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
5 deletions
+14
-5
nsio.c
dlls/mshtml/nsio.c
+14
-5
No files found.
dlls/mshtml/nsio.c
View file @
793b021f
...
...
@@ -1623,11 +1623,20 @@ static nsresult NSAPI nsURI_GetScheme(nsIURL *iface, nsACString *aScheme)
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
aScheme
);
if
(
This
->
use_wine_url
)
{
/*
* For Gecko we set scheme to unknown so it won't be handled
* as any special case.
*/
nsACString_SetData
(
aScheme
,
"wine"
);
char
scheme
[
INTERNET_MAX_SCHEME_LENGTH
+
1
];
WCHAR
*
ptr
;
int
len
;
ptr
=
strchrW
(
This
->
wine_url
,
':'
);
if
(
!
ptr
)
{
nsACString_SetData
(
aScheme
,
"wine"
);
return
NS_OK
;
}
len
=
WideCharToMultiByte
(
CP_ACP
,
0
,
This
->
wine_url
,
ptr
-
This
->
wine_url
,
scheme
,
sizeof
(
scheme
),
NULL
,
NULL
);
scheme
[
min
(
len
,
sizeof
(
scheme
)
-
1
)]
=
0
;
nsACString_SetData
(
aScheme
,
strcmp
(
scheme
,
"about"
)
?
scheme
:
"wine"
);
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